An encapsulation of various parameters for requesting device orientation through
FusedOrientationProviderClient.
| class | DeviceOrientationRequest.Builder | A builder for DeviceOrientationRequest. |
|
| long | OUTPUT_PERIOD_DEFAULT | Recommended frequency (50Hz / 20ms period) for users looking for a trade-off between lower battery usage and frequent orientation updates. |
| long | OUTPUT_PERIOD_FAST | This higher update frequency (200Hz / 5ms period) is for users requiring a higher level of precision, at the cost of battery usage. |
| long | OUTPUT_PERIOD_MEDIUM | This higher update frequency (100Hz / 10ms period) is for users requiring a higher level of precision, at the cost of battery usage. |
| public static final Creator<DeviceOrientationRequest> | CREATOR |
| boolean | |
| long |
getSamplingPeriodMicros()
Returns the requested sampling period in microseconds.
|
| int |
hashCode()
|
| String |
toString()
|
| void |
writeToParcel(Parcel parcel, int
flags)
|
Recommended frequency (50Hz / 20ms period) for users looking for a trade-off between lower battery usage and frequent orientation updates. Example application: compass or navigation app.
This higher update frequency (200Hz / 5ms period) is for users requiring a higher level of precision, at the cost of battery usage. Example application: AR apps where micro adjustments of orientation are required.
This higher update frequency (100Hz / 10ms period) is for users requiring a higher level of precision, at the cost of battery usage. Example application: apps where gesture detection is required.
Returns the requested sampling period in microseconds.