Udostępnij za pośrednictwem


SensorPrivacyManager.SupportsSensorToggle Method

Definition

Overloads

SupportsSensorToggle(Int32)

Checks if the given toggle is supported on this device

SupportsSensorToggle(Int32, Int32)

Checks if the given toggle is supported on this device

SupportsSensorToggle(Int32)

Checks if the given toggle is supported on this device

[Android.Runtime.Register("supportsSensorToggle", "(I)Z", "", ApiSince=31)]
public bool SupportsSensorToggle (int sensor);
[<Android.Runtime.Register("supportsSensorToggle", "(I)Z", "", ApiSince=31)>]
member this.SupportsSensorToggle : int -> bool

Parameters

sensor
Int32

The sensor to check

Returns

whether the toggle for the sensor is supported on this device.

Attributes

Remarks

Checks if the given toggle is supported on this device

Java documentation for android.hardware.SensorPrivacyManager.supportsSensorToggle(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.

Applies to

SupportsSensorToggle(Int32, Int32)

Checks if the given toggle is supported on this device

[Android.Runtime.Register("supportsSensorToggle", "(II)Z", "", ApiSince=33)]
public bool SupportsSensorToggle (int toggleType, int sensor);
[<Android.Runtime.Register("supportsSensorToggle", "(II)Z", "", ApiSince=33)>]
member this.SupportsSensorToggle : int * int -> bool

Parameters

toggleType
Int32
sensor
Int32

The sensor to check

Returns

whether the toggle for the sensor is supported on this device.

Attributes

Remarks

Checks if the given toggle is supported on this device

Java documentation for android.hardware.SensorPrivacyManager.supportsSensorToggle(int, 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.

Applies to