| java.lang.Object | |
| ↳ | com.google.android.gms.fitness.Fitness.Intents |
Useful constants and methods for dealing with intents in the Fitness platform.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | EXTRA_DATA_SOURCE | Name for the parcelable intent extra containing the data source/ | |||||||||
| String | EXTRA_END_TIME | Name for the long intent extra containing the end time. | |||||||||
| String | EXTRA_SESSION | Name for the parcelable intent extra containing the data session/ | |||||||||
| String | EXTRA_START_TIME | Name for the long intent extra containing the start time. | |||||||||
| String | MIME_ACTIVITY_TYPE_PREFIX | The common prefix for Activity types. | |||||||||
| String | MIME_DATA_TYPE_PREFIX | The common prefix for Fitness data type mime types. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the mime type for a particular activity.
| |||||||||||
Retrieves the data source extra from the given intent.
| |||||||||||
Returns the mime type for a particular
DataType. | |||||||||||
Retrieves the end time extra from the given intent.
| |||||||||||
Retrieves the start time extra from the given intent.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Name for the parcelable intent extra containing the data source/
Name for the long intent extra containing the end time.
Name for the parcelable intent extra containing the data session/
Name for the long intent extra containing the start time.
The common prefix for Activity types. The mime type for a particular activity type will be this prefix followed by the activity name.
The common prefix for Fitness data type mime types. The mime type for a particular data type will be this prefix followed by the data type name.
Returns the mime type for a particular activity.
| activity | one of the activities in FitnessActivities.
|
|---|
Retrieves the data source extra from the given intent.
null if not found
Returns the mime type for a particular DataType.
Retrieves the end time extra from the given intent.
-1 if not found
Retrieves the start time extra from the given intent.
-1 if not found