Język

UserData.Orientation Property

Definition

The device orientation.

public Android.Content.Res.Orientation Orientation { [Android.Runtime.Register("getOrientation", "()I", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getOrientation", "()I", "", ApiSince=35)>]
member this.Orientation : Android.Content.Res.Orientation

Property Value

Value is one of the following: Configuration.ORIENTATION_UNDEFINED; Configuration.ORIENTATION_PORTRAIT; Configuration.ORIENTATION_LANDSCAPE

Attributes

Remarks

The device orientation. The value can be one of the constants ORIENTATION_UNDEFINED, ORIENTATION_PORTRAIT or ORIENTATION_LANDSCAPE defined in android.content.res.Configuration.

Java documentation for android.adservices.ondevicepersonalization.UserData.getOrientation().

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