Class GPSStatusEvent

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

    public final class GPSStatusEvent
    extends java.lang.Object
    implements android.os.Parcelable, INeonEventConstraint
    An event that is emitted whenever the internal GPS status changes
    See Also:
    GPSStatus
    • 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<GPSStatusEvent> CREATOR
      Used for sending data across binders
      GPSStatus Status
      New GPS Status
      long StatusFlags
      Extra GPS Status Flags to indicate source
      long UnixTimeMs
      Timestamp of the GPS Status change in Unix Time Ms
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      GPSStatusEvent​(long unixTimeMs, GPSStatus status, long statusFlags)
      Creates a custom constraint
    • Field Detail

      • UnixTimeMs

        public final long UnixTimeMs
        Timestamp of the GPS Status change in Unix Time Ms
      • StatusFlags

        public final long StatusFlags
        Extra GPS Status Flags to indicate source
      • CREATOR

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

      • GPSStatusEvent

        public GPSStatusEvent​(long unixTimeMs,
                              GPSStatus status,
                              long statusFlags)
        Creates a custom constraint
        Parameters:
        unixTimeMs - Unix time in ms
        status - updated GPS status
        statusFlags - Source information for GPS Status
    • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object