public class

DataUpdateRequest

extends Object
implements Parcelable
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
Fields
public static final Creator<DataUpdateRequest> CREATOR
Public Methods
boolean equals(Object o)
IBinder getCallbackBinder()
DataSet getDataSet()
Returns the data set we're inserting.
long getEndTime(TimeUnit timeUnit)
Returns the end time of the query, in the given unit since epoch.
long getStartTime(TimeUnit timeUnit)
Returns the start time of the query, in the given unit since epoch.
int hashCode()
String toString()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<DataUpdateRequest> CREATOR

Public Methods

public boolean equals (Object o)

Parameters
o Object
Returns
boolean

public IBinder getCallbackBinder ()

Returns
IBinder

public DataSet getDataSet ()

Returns the data set we're inserting.

Returns
DataSet

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
Returns
long

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
Returns
long

public int hashCode ()

Returns
int

public String toString ()

Returns
String

public void writeToParcel (Parcel dest, int flags)

Parameters
dest Parcel
flags int