共用方式為


UIApplication.IdleTimerDisabled 屬性

定義

如果 true 為 ,表示即使未發生任何輸入,畫面也不應該變暗。

public virtual bool IdleTimerDisabled { [Foundation.Export("isIdleTimerDisabled")] get; [Foundation.Export("setIdleTimerDisabled:")] set; }
member this.IdleTimerDisabled : bool with get, set

屬性值

預設值是 false

屬性

備註

閒置計時器在經過一些時間之後,會讓螢幕變暗,而不需要使用者互動。 想要讓螢幕保持完整電源的應用程式開發人員可以將此屬性設定為 true 。 例如,輸入受限於加速計的遊戲,可能會將此值設定為 true

適用於