java.lang.Object | |
↳ | com.google.android.gms.fitness.service.FitnessSensorServiceRequest |
Request for registering for sensor events from an application-exposed sensor
data source
. The request specifies the data source,
the desired sampling rate and batching interval for the registration,
and a listener to deliver events to.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | UNSPECIFIED | Constant representing an unspecified value. |
[Expand]
Inherited Constants | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the maximum delay between a data point being detected and reported.
| |||||||||||
Returns the data source the client is registering to.
| |||||||||||
Returns a dispatcher that can be used to send events back to the Fitness Platform for this
particular registration.
| |||||||||||
Returns the desired delay between two consecutive collected data points,
in the given time unit.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||||||||||||||||||||||||
![]() |
Constant representing an unspecified value.
Sets the maximum delay between a data point being detected and reported. The batch interval can be used to enable batching, which can save battery by reducing the number of times the AP is awaken, and the number of network transfers. This is specially important if the sensor exposed is from a companion device.
The batch interval is a hint to the system, and events can be reported sooner. If no interval is specified, or if the underlying data source does not support batching, events may be reported as soon as they are detected.
UNSPECIFIED
if unspecified.
Returns the data source the client is registering to. The Fitness Platform will guarantee that applications only receive requests for data sources they own.
Duplicate requests for the same data source should be treated as update requests.
Returns a dispatcher that can be used to send events back to the Fitness Platform for this particular registration.
Returns the desired delay between two consecutive collected data points, in the given time unit. This is only a hint, and events may be sampled faster or slower than the specified rate.
If the sampling rate is unspecified, the application should select a default rate with conservative battery usage for an always-on registration.
UNSPECIFIED
if unspecified.