java.lang.Object | |
↳ | com.google.android.gms.fitness.request.DataDeleteRequest.Builder |
Builder used to create new DataDeleteRequests.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a specific data source to delete data from the Google Fit store.
| |||||||||||
Adds a specific data type to delete data from the Google Fit store.
| |||||||||||
Adds a specific session to delete from the Google Fit store.
| |||||||||||
Finishes building and returns the request.
| |||||||||||
Adds option to delete data for all data types.
| |||||||||||
Sets the time interval for the data delete query.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Adds a specific data source to delete data from the Google Fit store. Apps can either
use this function or use addDataType(DataType)
to add a specific data type,
or use deleteAllData()
to mark data for all data types to be deleted.
IllegalArgumentException | if the input data source is invalid or if all data is already marked for deletion |
---|
Adds a specific data type to delete data from the Google Fit store. Apps can either
use this function or use addDataSource(DataSource)
to add a specific data
source, or use deleteAllData()
to mark data for all data types to be deleted.
IllegalArgumentException | if invalid data type is specified or if all data is already marked for deletion |
---|
Adds a specific session to delete from the Google Fit store. Apps can either use this
function or use deleteAllSessions()
to mark all sessions for deletion. Only
sessions that have already ended can be marked for deletion.
IllegalArgumentException | if the input session is invalid or is still ongoing, or if all sessions are already marked for deletion |
---|
Finishes building and returns the request.
IllegalStateException | if time interval is not set or if input sessions are outside the query time interval, or if no data or session is marked for deletion |
---|
Adds option to delete data for all data types. Apps can either use this function to
delete all data or specify a specific data source using
addDataSource(DataSource)
or a specific data type using
addDataType(DataType)
for data deletion.
IllegalArgumentException | if a specific data source/type is already added for deletion |
---|
Sets the time interval for the data delete query.
IllegalArgumentException | if the input time interval is invalid. |
---|