Class RemoteRangeEvent
- java.lang.Object
-
- com.trx.neon.api.neonConstraint.model.events.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.
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<RemoteRangeEvent>CREATORUsed for sending data across bindersElevationInfoElevationInfojava.lang.DoubleLatitudeNullable 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 nulljava.lang.DoubleLongitudefloatPlacementErrorUncertainty in meters of the placement location of the ranging devicefloatRangeThe computed range in meters to the ranging devicejava.lang.StringRemoteIDIdentifier for the ranging device Could be a MAC Address or TRX IDRangeTypeTypeRanging technology usedlongUnixTimeMsTimestamp of the Range in Unix Time Ms
-
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 intdescribeContents()voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
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
-
ElevationInfo
public final ElevationInfo ElevationInfo
-
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 msremoteID- Identifier for the ranging devicerange- The computed range in meters to the ranging devicerangeType- Ranging technology usedplacementError- Uncertainty in meters of the placement location of the ranging devicelatitude- Latitude if device is registered with NEON, otherwise nulllongitude- Longitude if device is registered with NEON, otherwise nullelevationInfo- ElevationInfo if device is registered with NEON, otherwise null
-
-