Class DroppedBeaconStatusEvent

  • All Implemented Interfaces:
    android.os.Parcelable, INeonEventConstraint

    public final class DroppedBeaconStatusEvent
    extends java.lang.Object
    implements android.os.Parcelable, INeonEventConstraint
    A Dropped Beacon Status Event is emitted when NeonConstraint.dropUWBBeacon() is called. It indicates whether the beacon was successfully dropped and any error message
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String BeaconID
      Name of the beacon trying to be dropped, in the form "TRX_9XXX"
      static android.os.Parcelable.Creator<DroppedBeaconStatusEvent> CREATOR
      Used for sending data across binders
      java.lang.String ErrorMessage
      If success is false, any error message
      boolean Success
      Whether or not dropping the beacon was successful
      long UnixTimeMs
      Timestamp of the status event
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      DroppedBeaconStatusEvent​(long unixTimeMs, java.lang.String beaconID, boolean success, java.lang.String errorMessage)
      Creates a dropped beacon status event
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int describeContents()  
      void writeToParcel​(android.os.Parcel dest, int flags)  
      • Methods inherited from class java.lang.Object

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

      • UnixTimeMs

        public final long UnixTimeMs
        Timestamp of the status event
      • BeaconID

        public final java.lang.String BeaconID
        Name of the beacon trying to be dropped, in the form "TRX_9XXX"
      • Success

        public final boolean Success
        Whether or not dropping the beacon was successful
      • ErrorMessage

        public final java.lang.String ErrorMessage
        If success is false, any error message
      • CREATOR

        public static final android.os.Parcelable.Creator<DroppedBeaconStatusEvent> CREATOR
        Used for sending data across binders
    • Constructor Detail

      • DroppedBeaconStatusEvent

        public DroppedBeaconStatusEvent​(long unixTimeMs,
                                        java.lang.String beaconID,
                                        boolean success,
                                        java.lang.String errorMessage)
        Creates a dropped beacon status event
        Parameters:
        unixTimeMs - Unix time in ms
        beaconID - Name of the beacon trying to be dropped, in the form "TRX_9XXX"
        success - Whether the beacon was successfully dropped
        errorMessage - Any error message
    • Method Detail

      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable