Class RemoteRangeEvent

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

    public final class RemoteRangeEvent
    extends java.lang.Object
    implements android.os.Parcelable, INeonEventConstraint
    A Remote Range Event is emitted when a valid range is received in the NEON Location Service. If the ranging device is registered in the NEON Cloud, location information will be included with the range event, otherwise, only the remote ID, range, and type will be emitted.
    • 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
      static android.os.Parcelable.Creator<RemoteRangeEvent> CREATOR
      Used for sending data across binders
      ElevationInfo ElevationInfo  
      java.lang.Double Latitude
      Nullable Latitude, Longitude, and ElevationInfo - if the ranging device is registered with NEON this will be the location of the ranging device and it's elevation info - otherwise these fields will all be null
      java.lang.Double Longitude  
      float PlacementError
      Uncertainty in meters of the placement location of the ranging device
      float Range
      The computed range in meters to the ranging device
      java.lang.String RemoteID
      Identifier for the ranging device Could be a MAC Address or TRX ID
      RangeType Type
      Ranging technology used
      long UnixTimeMs
      Timestamp of the Range in Unix Time Ms
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      RemoteRangeEvent​(long unixTimeMs, java.lang.String remoteID, float range, RangeType rangeType, float placementError, java.lang.Double latitude, java.lang.Double longitude, ElevationInfo elevationInfo)
      Creates a remote range 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 Range in Unix Time Ms
      • RemoteID

        public final java.lang.String RemoteID
        Identifier for the ranging device Could be a MAC Address or TRX ID
      • Range

        public final float Range
        The computed range in meters to the ranging device
      • PlacementError

        public final float PlacementError
        Uncertainty in meters of the placement location of the ranging device
      • Latitude

        public final java.lang.Double Latitude
        Nullable Latitude, Longitude, and ElevationInfo - if the ranging device is registered with NEON this will be the location of the ranging device and it's elevation info - otherwise these fields will all be null
      • Longitude

        public final java.lang.Double Longitude
      • CREATOR

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

      • RemoteRangeEvent

        public RemoteRangeEvent​(long unixTimeMs,
                                java.lang.String remoteID,
                                float range,
                                RangeType rangeType,
                                float placementError,
                                java.lang.Double latitude,
                                java.lang.Double longitude,
                                ElevationInfo elevationInfo)
        Creates a remote range event
        Parameters:
        unixTimeMs - Unix time in ms
        remoteID - Identifier for the ranging device
        range - The computed range in meters to the ranging device
        rangeType - Ranging technology used
        placementError - Uncertainty in meters of the placement location of the ranging device
        latitude - Latitude if device is registered with NEON, otherwise null
        longitude - Longitude if device is registered with NEON, otherwise null
        elevationInfo - ElevationInfo if device is registered with NEON, otherwise null
    • 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