java.lang.Object |
↳ |
com.google.android.gms.fitness.data.DataUpdateNotification |
Class Overview
Captures the information needed to identify updates to Google Fitness Store data. Currently, it
includes the time range for which update happened, the type of operation which resulted in update
along with the dataSource/dataType of the data which was modified.
Summary
[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)
|
|
Constants
public
static
final
String
ACTION
Constant Value:
"com.google.android.gms.fitness.DATA_UPDATE_NOTIFICATION"
public
static
final
String
EXTRA_DATA_UPDATE_NOTIFICATION
Name for the long intent extra containing the data update notification. It can be extracted
using getDataUpdateNotification(Intent)
.
Constant Value:
"vnd.google.fitness.data_udpate_notification"
public
static
final
int
OPERATION_DELETE
Constant Value:
2
(0x00000002)
public
static
final
int
OPERATION_INSERT
Constant Value:
1
(0x00000001)
public
static
final
int
OPERATION_UPDATE
Constant Value:
3
(0x00000003)
Fields
Public Methods
public
boolean
equals
(Object o)
public
DataSource
getDataSource
()
Retrieves the dataSource whose data has been modified.
public
DataType
getDataType
()
Retrieves the dataType whose data has been modified.
public
static
DataUpdateNotification
getDataUpdateNotification
(Intent intent)
Retrieves the data update notification from the given intent.
public
int
getOperationType
()
Retrieves the operationType which causes the update in Fitness Store.
public
long
getUpdateEndTime
(TimeUnit timeUnit)
Retrieves the endTime of the interval range for which data has been modified in the given
unit since epoch. A valid end time is always set.
Parameters |
timeUnit |
TimeUnit
|
public
long
getUpdateStartTime
(TimeUnit timeUnit)
Retrieves the startTime of the interval range for which data has been modified 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
|