Class TriggersBroadcastReceiver

java.lang.Object
android.content.BroadcastReceiver
com.arubanetworks.meridian.triggers.TriggersBroadcastReceiver

public abstract class TriggersBroadcastReceiver extends BroadcastReceiver
An abstract class to assist with retrieving data from a Meridian triggers Broadcast.
  • Field Details

  • Constructor Details

    • TriggersBroadcastReceiver

      public TriggersBroadcastReceiver()
  • Method Details

    • onReceive

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

      protected abstract void onReceive(Context context, 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(Intent i)
      Retrieve the Meridian App Key that this broadcast was triggered with.
    • getTriggerName

      public static String getTriggerName(Intent i)
      Retrieve the trigger name that this broadcast was triggered with.
    • getRSSI

      public static int getRSSI(Intent i)
      Retrieve the rssi of the beacon that triggered this broadcast.
    • getMajor

      public static int getMajor(Intent i)
      Retrieve the major of the beacon that triggered this broadcast.
    • getMinor

      public static int getMinor(Intent i)
      Retrieve the minor of the beacon that triggered this broadcast.
    • getX

      public static float getX(Intent i)
      Retrieve the x coordinate of the beacon that triggered this broadcast.
    • getY

      public static float getY(Intent i)
      Retrieve the y coordinate of the beacon that triggered this broadcast.
    • getMapId

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

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