SensorDirectChannel.Configure(Sensor, SensorDirectRateLevel) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configure sensor rate or stop sensor report.
[Android.Runtime.Register("configure", "(Landroid/hardware/Sensor;I)I", "", ApiSince=26)]
public int Configure (Android.Hardware.Sensor? sensor, Android.Hardware.SensorDirectRateLevel rateLevel);
[<Android.Runtime.Register("configure", "(Landroid/hardware/Sensor;I)I", "", ApiSince=26)>]
member this.Configure : Android.Hardware.Sensor * Android.Hardware.SensorDirectRateLevel -> int
Parameters
- sensor
- Sensor
A android.hardware.Sensor object to denote sensor to be operated.
- rateLevel
- SensorDirectRateLevel
rate level defined in android.hardware.SensorDirectChannel.
Returns
- starting report or changing rate: positive sensor report token on success, 0 on failure; * stopping report: 1 on success, 0 on failure.
- Attributes
Remarks
Java documentation for android.hardware.SensorDirectChannel.configure(android.hardware.Sensor, int).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.