public class HandlerUtils
extends java.lang.Object
sendMessageHandler(android.os.Handler, int)
sendMessageHandler(android.os.Handler, int, android.os.Bundle)
sendMessageHandler(android.os.Handler, int, Object)
sendMessageHandler(android.os.Handler, int, String, int)
sendMessageHandler(android.os.Handler, int, String, String)
sendMessageHandlerDelay(android.os.Handler, int, long)
sendMessageHandlerDelay(android.os.Handler, int, Object, long)
sendMessageHandlerDelay(android.os.Handler, int, String, String, long)
sendMessageHandlerDelay(android.os.Handler, int, String, int, long)
限定符和类型 | 字段和说明 |
---|---|
static android.os.Handler |
dismissViewHandler
Set visibility of the view which in message's obj visibility to GONE
|
static android.os.Handler |
invisiablViewHandler
Set visibility of the view which in message's obj visibility to INVISIBLE
|
static android.os.Handler |
visiablViewHandler
Set visibility of the view which in message's obj visibility to VISIBLE
|
构造器和说明 |
---|
HandlerUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
sendMessageHandler(android.os.Handler handler)
Send an empty message which default what value is 0
|
static void |
sendMessageHandler(android.os.Handler handler,
int what)
Send an empty message containing only the what value.
|
static void |
sendMessageHandler(android.os.Handler handler,
int what,
android.os.Bundle bundle)
Pushes a message containing bundle onto the end of the message queue after all pending messages before the current time.
|
static void |
sendMessageHandler(android.os.Handler handler,
int what,
java.lang.Object obj)
Pushes a message onto the end of the message queue after all pending messages before the current time.
|
static void |
sendMessageHandler(android.os.Handler handler,
int what,
java.lang.String key,
int value)
Pushes a message onto the end of the message queue after all pending messages before the current time.
|
static void |
sendMessageHandler(android.os.Handler handler,
int what,
java.lang.String key,
java.lang.String value)
Pushes a message onto the end of the message queue after all pending messages before the current time.
|
static void |
sendMessageHandlerDelay(android.os.Handler handler,
int what,
long delayTime)
Sends a Message containing only the what value, to be delivered after the specified amount of time elapses.
|
static void |
sendMessageHandlerDelay(android.os.Handler handler,
int what,
java.lang.Object obj,
long delayTime)
Enqueue a message containing what value and object into the message queue after all pending messages before (current time + delayMillis).
|
static void |
sendMessageHandlerDelay(android.os.Handler handler,
int what,
java.lang.String key,
int value,
long delayTime)
Enqueue a message into the message queue after all pending messages before (current time + delayMillis).
|
static void |
sendMessageHandlerDelay(android.os.Handler handler,
int what,
java.lang.String key,
java.lang.String value,
long delayTime)
Enqueue a message into the message queue after all pending messages before (current time + delayMillis).
|
public static android.os.Handler dismissViewHandler
public static android.os.Handler invisiablViewHandler
public static android.os.Handler visiablViewHandler
public static void sendMessageHandler(android.os.Handler handler)
handler
- public static void sendMessageHandler(android.os.Handler handler, int what)
handler
- what
- public static void sendMessageHandler(android.os.Handler handler, int what, java.lang.Object obj)
handler
- what
- obj
- public static void sendMessageHandler(android.os.Handler handler, int what, java.lang.String key, java.lang.String value)
handler
- what
- key
- value
- public static void sendMessageHandler(android.os.Handler handler, int what, java.lang.String key, int value)
handler
- what
- key
- value
- public static void sendMessageHandlerDelay(android.os.Handler handler, int what, java.lang.String key, java.lang.String value, long delayTime)
handler
- what
- key
- value
- delayTime
- public static void sendMessageHandlerDelay(android.os.Handler handler, int what, java.lang.String key, int value, long delayTime)
handler
- what
- key
- value
- delayTime
- public static void sendMessageHandlerDelay(android.os.Handler handler, int what, long delayTime)
handler
- what
- delayTime
- public static void sendMessageHandlerDelay(android.os.Handler handler, int what, java.lang.Object obj, long delayTime)
handler
- what
- obj
- delayTime
- public static void sendMessageHandler(android.os.Handler handler, int what, android.os.Bundle bundle)
handler
- what
- bundle
-