Class PostureEvent

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

    public final class PostureEvent
    extends java.lang.Object
    implements android.os.Parcelable, INeonEvent
    Represents a change in the user's posture.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PostureEvent.PostureEventType
      Postures that the user can take on.
      • 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<PostureEvent> CREATOR
      Used for sending data across binders
      long unixTimeMs  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Field Detail

      • unixTimeMs

        public final long unixTimeMs
      • CREATOR

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

      • getKey

        public java.lang.String getKey()
        Specified by:
        getKey in interface INeonEvent
      • 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