Class TriggersBroadcastReceiver
java.lang.Object
android.content.BroadcastReceiver
com.arubanetworks.meridian.triggers.TriggersBroadcastReceiver
public abstract class TriggersBroadcastReceiver
extends android.content.BroadcastReceiver
An abstract class to assist with retrieving data from a Meridian triggers Broadcast.
-
Nested Class Summary
Nested classes/interfaces inherited from class android.content.BroadcastReceiver
android.content.BroadcastReceiver.PendingResult
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EditorKey
getAppKey
(android.content.Intent i) Retrieve the Meridian App Key that this broadcast was triggered with.static 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 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 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.final void
onReceive
(android.content.Context context, android.content.Intent intent) protected abstract void
Forwarded fromBroadcastReceiver.onReceive(android.content.Context, android.content.Intent)
with title and message unpacked for convenience.Methods inherited from class android.content.BroadcastReceiver
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, getSentFromPackage, getSentFromUid, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
-
Field Details
-
TRIGGERS_BROADCAST_ACTION
- See Also:
-
-
Constructor Details
-
TriggersBroadcastReceiver
public TriggersBroadcastReceiver()
-
-
Method Details
-
onReceive
public final void onReceive(android.content.Context context, android.content.Intent intent) - Specified by:
onReceive
in classandroid.content.BroadcastReceiver
-
onReceive
protected abstract void onReceive(android.content.Context context, android.content.Intent intent, String title) Forwarded fromBroadcastReceiver.onReceive(android.content.Context, android.content.Intent)
with title and message unpacked for convenience.- Parameters:
intent
- The intent delivered with this broadcast.title
- The user facing title of the Trigger.
-
getAppKey
Retrieve the Meridian App Key that this broadcast was triggered with. -
getTriggerName
Retrieve the trigger name that this broadcast was triggered with. -
getRSSI
public static int getRSSI(android.content.Intent i) Retrieve the rssi of the beacon that triggered this broadcast. -
getMajor
public static int getMajor(android.content.Intent i) Retrieve the major of the beacon that triggered this broadcast. -
getMinor
public static int getMinor(android.content.Intent i) Retrieve the minor of the beacon that triggered this broadcast. -
getX
public static float getX(android.content.Intent i) Retrieve the x coordinate of the beacon that triggered this broadcast. -
getY
public static float getY(android.content.Intent i) Retrieve the y coordinate of the beacon that triggered this broadcast. -
getMapId
Retrieve the map that the beacon that triggered this broadcast is on. -
getMacAddress
Retrieve the MAC address of the beacon that triggered this broadcast.
-