public class FoundDeviceReceiver
extends android.content.BroadcastReceiver
| Modifier and Type | Class and Description |
|---|---|
static interface |
FoundDeviceReceiver.FoundDeviceReceiverCallBack
Callback for this class.
|
| Constructor and Description |
|---|
FoundDeviceReceiver(FoundDeviceReceiver.FoundDeviceReceiverCallBack callBack)
Constructor for a
FoundDeviceReceiver |
| Modifier and Type | Method and Description |
|---|---|
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
static FoundDeviceReceiver |
register(android.content.Context context,
FoundDeviceReceiver.FoundDeviceReceiverCallBack callBack)
Registers a new FoundDeviceReceiver
|
static void |
safeUnregister(android.content.Context context,
FoundDeviceReceiver receiver)
Helper method to unregister a receiver.
|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtraspublic FoundDeviceReceiver(FoundDeviceReceiver.FoundDeviceReceiverCallBack callBack)
FoundDeviceReceivercallBack - callback to notify calling activity when devices are found.public static FoundDeviceReceiver register(android.content.Context context, FoundDeviceReceiver.FoundDeviceReceiverCallBack callBack)
context - the contextcallBack - callback from the context.public void onReceive(android.content.Context context,
android.content.Intent intent)
onReceive in class android.content.BroadcastReceiverpublic static void safeUnregister(android.content.Context context,
FoundDeviceReceiver receiver)
context - the contextreceiver - the receiver to unregister.