共用方式為


UiModeManager.CustomNightModeStart 屬性

定義

會傳回一天深色主題啟動的時間 -或- 設定一天深色主題啟動的時間

public virtual Java.Time.LocalTime CustomNightModeStart { [Android.Runtime.Register("getCustomNightModeStart", "()Ljava/time/LocalTime;", "GetGetCustomNightModeStartHandler", ApiSince=30)] get; [Android.Runtime.Register("setCustomNightModeStart", "(Ljava/time/LocalTime;)V", "GetSetCustomNightModeStart_Ljava_time_LocalTime_Handler", ApiSince=30)] set; }
[<get: Android.Runtime.Register("getCustomNightModeStart", "()Ljava/time/LocalTime;", "GetGetCustomNightModeStartHandler", ApiSince=30)>]
[<set: Android.Runtime.Register("setCustomNightModeStart", "(Ljava/time/LocalTime;)V", "GetSetCustomNightModeStart_Ljava_time_LocalTime_Handler", ApiSince=30)>]
member this.CustomNightModeStart : Java.Time.LocalTime with get, set

屬性值

屬性

備註

屬性 getter 檔:

傳回一天深色主題啟動的時間

當夜間模式為 #MODE_NIGHT_CUSTOM時,系統會使用此時間設定來自動啟用它。

android.app.UiModeManager.getCustomNightModeStart()Java 檔。

屬性 setter 檔:

設定一天中的深色主題啟動時間

當夜間模式為 #MODE_NIGHT_CUSTOM時,系統會使用此時間設定自動啟用

android.app.UiModeManager.setCustomNightModeStart(java.time.LocalTime)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於