OrientationEventListener.CanDetectOrientation Method

Definition

Indicates whether orientation detection is available on this device.

[Android.Runtime.Register("canDetectOrientation", "()Z", "GetCanDetectOrientationHandler")]
public virtual bool CanDetectOrientation();
[<Android.Runtime.Register("canDetectOrientation", "()Z", "GetCanDetectOrientationHandler")>]
abstract member CanDetectOrientation : unit -> bool
override this.CanDetectOrientation : unit -> bool

Returns

The result of the can detect orientation operation.

Attributes

Remarks

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