Class GeoUniq.MotionActivity

java.lang.Object
com.geouniq.android.GeoUniq.MotionActivity
Enclosing class:
GeoUniq

public static class GeoUniq.MotionActivity extends Object
Models a motion activity, that is, a period of time during which the same motion type (see GeoUniq.MotionActivity.Type) has been observed
  • Method Details

    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object
    • type

      @NonNull public GeoUniq.MotionActivity.Type type()
      Allows to obtain the GeoUniq.MotionActivity.Type of movement of this MotionActivity
      Returns:
      the Type of movement
    • startTime

      @NonNull public Date startTime()
      Allows to obtain the start time of this MotionActivity
      Returns:
      a Date object indicating the start time
    • endTime

      @Nullable public Date endTime()
      Allows to obtain the end time of this MotionActivity
      Returns:
      a Date object indicating the end time or null if the activity is still in progress
    • endPosition

      @Nullable public GeoUniq.GeoPoint endPosition()
      Allows to obtain the end position of this MotionActivity
      Returns:
      a GeoUniq.GeoPoint object indicating the end position or null if the activity is still in progress or the end position couldn't be identified
    • startPosition

      @Nullable public GeoUniq.GeoPoint startPosition()
      Allows to obtain the start position of this MotionActivity
      Returns:
      a GeoUniq.GeoPoint object indicating the end position or null if the start position couldn't be identified