public class BroadcastManager
extends java.lang.Object
Constructor and Description |
---|
BroadcastManager() |
Modifier and Type | Method and Description |
---|---|
BroadcastManager |
action(java.lang.String action) |
void |
broadcast() |
BroadcastManager |
extras(android.os.Bundle bundle) |
static BroadcastManager |
getInstance(android.content.Context ctx) |
BroadcastManager |
intent(android.content.Intent intent) |
BroadcastManager |
put(java.lang.String key,
java.util.ArrayList<? extends android.os.Parcelable> value) |
BroadcastManager |
put(java.lang.String key,
boolean value) |
BroadcastManager |
put(java.lang.String key,
double value) |
BroadcastManager |
put(java.lang.String key,
float value) |
BroadcastManager |
put(java.lang.String key,
int value) |
BroadcastManager |
put(java.lang.String key,
long value) |
BroadcastManager |
put(java.lang.String key,
android.os.Parcelable value) |
BroadcastManager |
put(java.lang.String key,
android.os.Parcelable[] value) |
BroadcastManager |
put(java.lang.String key,
java.lang.String str) |
void |
registerReceiver(android.content.BroadcastReceiver br,
java.util.List<java.lang.String> actions) |
void |
registerReceiver(android.content.BroadcastReceiver br,
java.lang.String... actions) |
void |
unregisterReceiver(android.content.BroadcastReceiver br) |
void |
unregisterReceiver(android.content.BroadcastReceiver br,
java.lang.String... actions) |
public static BroadcastManager getInstance(android.content.Context ctx)
public BroadcastManager intent(android.content.Intent intent)
public BroadcastManager action(java.lang.String action)
public BroadcastManager extras(android.os.Bundle bundle)
public BroadcastManager put(java.lang.String key, java.util.ArrayList<? extends android.os.Parcelable> value)
public BroadcastManager put(java.lang.String key, android.os.Parcelable[] value)
public BroadcastManager put(java.lang.String key, android.os.Parcelable value)
public BroadcastManager put(java.lang.String key, float value)
public BroadcastManager put(java.lang.String key, double value)
public BroadcastManager put(java.lang.String key, long value)
public BroadcastManager put(java.lang.String key, boolean value)
public BroadcastManager put(java.lang.String key, int value)
public BroadcastManager put(java.lang.String key, java.lang.String str)
public void broadcast()
public void registerReceiver(android.content.BroadcastReceiver br, java.util.List<java.lang.String> actions)
public void registerReceiver(android.content.BroadcastReceiver br, java.lang.String... actions)
public void unregisterReceiver(android.content.BroadcastReceiver br)
br
- public void unregisterReceiver(android.content.BroadcastReceiver br, java.lang.String... actions)
br
- actions
- 至少传入一个