java.lang.Object | |
↳ | com.google.android.gms.fitness.request.DataTypeCreateRequest |
A request for inserting an application-specific data type into the Google Fit store. Apps can use this request to define their own custom data types for reading and writing custom data.
The new data type should not duplicate any existing public data type. Apps can obtain the new data type from the result of this request, and use it to insert/read data. Data written in this data type will only be visible to the app that created this data type.
The new data type name should have the app's package name as the prefix. For instance, if the app's package name is "com.exampleapp", then a new data type named "com.exampleapp .custom_data" is permitted. However, a new data type named "com.anotherapp.custom_data" is not permitted.
Sample usage:
DataTypeCreateRequest request = new DataTypeCreateRequest.Builder() .setName("com.app.custom_data") .addField("field1", Field.FORMAT_INT32) .addField(DataTypes.Fields.ACTIVITY) .build();
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DataTypeCreateRequest.Builder | Builder used to create new DataTypeInsertRequests. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the specified fields for the created data type.
| |||||||||||
Returns the specified name for the crated data type.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |