Package fi.moprim.tmd.sdk.model
Interface TmdStatus
-
- All Superinterfaces:
android.os.Parcelable
public interface TmdStatus extends android.os.Parcelable"0_tmd_not_running": At Tmd init, before the services start "1_idle": TMD is active and monitoring motion "1_recording": TMD is recording "1_running": TMD is running locally "1_location_permission_change_location_available" "1_location_permission_change_location_unavailable" "0_tmd_stopped_insufficient_permissions": TMD has stopped because location permission changed "0_tmd_stopped_manually": TMD has been stopped manually via TMD#stop() "0_tmd_start_failed_cause_insufficient_motion_fitness_services": TMD could not start because of a problem with Motion & Fitness service availability/permissions "0_tmd_start_failed_cause_insufficient_location_services": TMD could not start because of a problem with Location service availability/permissions "0_application_killed": Application was killed "0_application_not_running": Application was not running and the reason for that is unkown "2_unknown_event": Unknown event
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTmdStatus.Category
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLABEL_APPLICATION_NOT_RUNNINGstatic java.lang.StringLABEL_IDLEstatic java.lang.StringLABEL_RECORDINGstatic java.lang.StringLABEL_RUNNINGstatic java.lang.StringLABEL_TMD_NOT_RUNNINGstatic java.lang.StringLABEL_TMD_STOPPED_INSUFFICIENT_PERMISSIONS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TmdStatus.CategorygetCategory()doublegetDuration()java.lang.StringgetLabel()longgetTimestampEnd()longgetTimestampStart()
-
-
-
Field Detail
-
LABEL_TMD_NOT_RUNNING
static final java.lang.String LABEL_TMD_NOT_RUNNING
- See Also:
- Constant Field Values
-
LABEL_TMD_STOPPED_INSUFFICIENT_PERMISSIONS
static final java.lang.String LABEL_TMD_STOPPED_INSUFFICIENT_PERMISSIONS
- See Also:
- Constant Field Values
-
LABEL_IDLE
static final java.lang.String LABEL_IDLE
- See Also:
- Constant Field Values
-
LABEL_RECORDING
static final java.lang.String LABEL_RECORDING
- See Also:
- Constant Field Values
-
LABEL_RUNNING
static final java.lang.String LABEL_RUNNING
- See Also:
- Constant Field Values
-
LABEL_APPLICATION_NOT_RUNNING
static final java.lang.String LABEL_APPLICATION_NOT_RUNNING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTimestampStart
long getTimestampStart()
- Returns:
- the UTC timestamp (in ms) of the start of the TMD status
-
getTimestampEnd
long getTimestampEnd()
- Returns:
- the UTC timestamp (in ms) of the end of the TMD status
-
getDuration
double getDuration()
- Returns:
- the duration in seconds of the status
-
getLabel
@NonNull java.lang.String getLabel()
- Returns:
- the label of the status
-
getCategory
TmdStatus.Category getCategory()
- Returns:
- the category of the status
-
-