public abstract class TriggersBroadcastReceiver
extends android.content.BroadcastReceiver
An abstract class to assist with retrieving data from a Meridian triggers Broadcast.
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
TRIGGERS_BROADCAST_ACTION |
Constructor and Description |
---|
TriggersBroadcastReceiver() |
Modifier and Type | Method and Description |
---|---|
static EditorKey |
getAppKey(android.content.Intent i)
Retrieve the Meridian App Key that this broadcast was triggered with.
|
static java.lang.String |
getMacAddress(android.content.Intent i)
Retrieve the MAC address of the beacon that triggered this broadcast.
|
static int |
getMajor(android.content.Intent i)
Retrieve the major of the beacon that triggered this broadcast.
|
static java.lang.String |
getMapId(android.content.Intent i)
Retrieve the map that the beacon that triggered this broadcast is on.
|
static int |
getMinor(android.content.Intent i)
Retrieve the minor of the beacon that triggered this broadcast.
|
static int |
getRSSI(android.content.Intent i)
Retrieve the rssi of the beacon that triggered this broadcast.
|
static java.lang.String |
getTriggerName(android.content.Intent i)
Retrieve the trigger name that this broadcast was triggered with.
|
static float |
getX(android.content.Intent i)
Retrieve the x coordinate of the beacon that triggered this broadcast.
|
static float |
getY(android.content.Intent i)
Retrieve the y coordinate of the beacon that triggered this broadcast.
|
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
protected abstract void |
onReceive(android.content.Context context,
android.content.Intent intent,
java.lang.String title)
Forwarded from
BroadcastReceiver.onReceive(android.content.Context, android.content.Intent) with title and message unpacked for convenience. |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
protected static final java.lang.String TRIGGERS_BROADCAST_ACTION
public final void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
protected abstract void onReceive(android.content.Context context, android.content.Intent intent, java.lang.String title)
Forwarded from BroadcastReceiver.onReceive(android.content.Context, android.content.Intent)
with title and message unpacked for convenience.
intent
- The intent delivered with this broadcast.title
- The user facing title of the Trigger.public static EditorKey getAppKey(android.content.Intent i)
Retrieve the Meridian App Key that this broadcast was triggered with.
public static java.lang.String getTriggerName(android.content.Intent i)
Retrieve the trigger name that this broadcast was triggered with.
public static int getRSSI(android.content.Intent i)
Retrieve the rssi of the beacon that triggered this broadcast.
public static int getMajor(android.content.Intent i)
Retrieve the major of the beacon that triggered this broadcast.
public static int getMinor(android.content.Intent i)
Retrieve the minor of the beacon that triggered this broadcast.
public static float getX(android.content.Intent i)
Retrieve the x coordinate of the beacon that triggered this broadcast.
public static float getY(android.content.Intent i)
Retrieve the y coordinate of the beacon that triggered this broadcast.
public static java.lang.String getMapId(android.content.Intent i)
Retrieve the map that the beacon that triggered this broadcast is on.
public static java.lang.String getMacAddress(android.content.Intent i)
Retrieve the MAC address of the beacon that triggered this broadcast.