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
    Modifier and Type
    Field
    Description
    protected static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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
    onReceive(android.content.Context context, android.content.Intent intent, String title)
    Forwarded from BroadcastReceiver.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • TriggersBroadcastReceiver

      public TriggersBroadcastReceiver()
  • Method Details

    • onReceive

      public final void onReceive(android.content.Context context, android.content.Intent intent)
      Specified by:
      onReceive in class android.content.BroadcastReceiver
    • onReceive

      protected abstract void onReceive(android.content.Context context, android.content.Intent intent, String title)
      Forwarded from BroadcastReceiver.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

      public static EditorKey getAppKey(android.content.Intent i)
      Retrieve the Meridian App Key that this broadcast was triggered with.
    • getTriggerName

      public static String getTriggerName(android.content.Intent i)
      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

      public static String getMapId(android.content.Intent i)
      Retrieve the map that the beacon that triggered this broadcast is on.
    • getMacAddress

      public static String getMacAddress(android.content.Intent i)
      Retrieve the MAC address of the beacon that triggered this broadcast.