Lines Matching defs:Handler

25  * A Handler allows you to send and process {@link Message} and Runnable
26 * objects associated with a thread's {@link MessageQueue}. Each Handler
28 * queue. When you create a new Handler, it is bound to the thread /
33 * <p>There are two main uses for a Handler: (1) to schedule messages and
45 * processed by the Handler's {@link #handleMessage} method (requiring that
46 * you implement a subclass of Handler).
48 * <p>When posting or sending to a Handler, you can either
59 * the main application thread through a Handler. This is done by calling
62 * in the Handler's message queue and processed when appropriate.
64 public class Handler {
67 * that extend this Handler class and that are not static. These kind
71 private static final String TAG = "Handler";
74 * Callback interface you can use when instantiating a Handler to avoid
75 * having to implement your own subclass of Handler.
113 public Handler() {
127 public Handler(Callback callback) {
136 public Handler(Looper looper) {
147 public Handler(Looper looper, Callback callback) {
167 public Handler(boolean async) {
188 public Handler(Callback callback, boolean async) {
190 final Class<? extends Handler> klass = getClass();
193 Log.w(TAG, "The following Handler class should be static or leaks might occur: " +
227 public Handler(Looper looper, Callback callback, boolean async) {
450 * set up a Handler thread and need to perform some initialization steps on
715 return "Handler (" + getClass().getName() + ") {"
733 Handler.this.sendMessage(msg);
780 public boolean postAndWait(Handler handler, long timeout) {