語言

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

屬性值

價值是以下之一:Configuration.ORIENTATION_UNDEFINED;Configuration.ORIENTATION_PORTRAIT;Configuration.ORIENTATION_LANDSCAPE

屬性

備註

裝置的方向。 該值可以是定義在 android.content.res.ConfigurationORIENTATION_UNDEFINED、ORIENTATION_PORTRAIT 或ORIENTATION_LANDSCAPE常數之一。

Java 文件 android.adservices.ondevicepersonalization.UserData.getOrientation()

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於