语言

UserData.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

属性值

值为下列值之一: Undefined; ; PortraitLandscape

特性

注解

设备方向。 该值可以是在其中定义的常量之一ORIENTATION_UNDEFINED、ORIENTATION_PORTRAIT或ORIENTATION_LANDSCAPE android.content.res.Configuration。

Java文档android.adservices.ondevicepersonalization.UserData.getOrientation()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于