Looper翻译

Class Overview

类概述

Class used to run a message loop for a thread.  Threads by default do not have a message loop associated with them; to create one, call  prepare() in the thread that is to run the loop, and then  loop() to have it process messages until the loop is stopped.  

类用来运行一个线程的消息循环。线程默认情况下没有与他们有联系的消息循环创造一个会话运行循环的线程上称作prepare()然后loop()处理消息直到循环停止

 

Most interaction with a message loop is through the  Handler class.  

大多数与一个消息循环的互动是通过Handler

This is a typical example of the implementation of a Looper thread, using the separation of prepare() and loop() to create an initial Handler to communicate with the Looper.

这是一个Looper线程实现一个典型的例子使用prepare()loop()创建分离活套初始经理人沟通

 

你可能感兴趣的:(Looper翻译)