java.lang.Object |
↳ |
com.google.android.gms.fitness.request.DataUpdateRequest |
Class Overview
A request to update data added by the app from the Google Fit store in the time interval
specified.
An app will provide time range using startTimeMillis and endTimeMillis for which app wants to
update the fitness data. Existing fitness data for the provided time range will be cleared.
In addition, app will provide DataSet
which will have new fitness data for the provided
time range. This new data will be inserted into fitness store.
An app can only update data that it has added and cannot update data added by other apps.
Summary
Nested Classes |
class |
DataUpdateRequest.Builder |
Builder used to create new DataUpdateRequests. |
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Fields
Public Methods
public
boolean
equals
(Object o)
public
IBinder
getCallbackBinder
()
public
DataSet
getDataSet
()
Returns the data set we're inserting.
public
long
getEndTime
(TimeUnit timeUnit)
Returns the end time of the query, in the given unit since epoch. A valid end time is
always set.
Parameters |
timeUnit |
TimeUnit
|
public
long
getStartTime
(TimeUnit timeUnit)
Returns the start time of the query, in the given unit since epoch. A valid start time is
always set.
Parameters |
timeUnit |
TimeUnit
|
public
String
toString
()
public
void
writeToParcel
(Parcel dest, int flags)
Parameters |
dest |
Parcel
|
flags |
int
|