Partager via


DreamService.ScreenBright Property

Definition

Returns whether this dream keeps the screen bright while dreaming. -or- Marks this dream as keeping the screen bright while dreaming.

public virtual bool ScreenBright { [Android.Runtime.Register("isScreenBright", "()Z", "GetIsScreenBrightHandler")] get; [Android.Runtime.Register("setScreenBright", "(Z)V", "GetSetScreenBright_ZHandler")] set; }
[<get: Android.Runtime.Register("isScreenBright", "()Z", "GetIsScreenBrightHandler")>]
[<set: Android.Runtime.Register("setScreenBright", "(Z)V", "GetSetScreenBright_ZHandler")>]
member this.ScreenBright : bool with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns whether this dream keeps the screen bright while dreaming. Defaults to true, preventing the screen from dimming.

Java documentation for android.service.dreams.DreamService.isScreenBright().

Property setter documentation:

Marks this dream as keeping the screen bright while dreaming. In preview mode, the screen is always allowed to dim and overrides the value specified here.

Java documentation for android.service.dreams.DreamService.setScreenBright(boolean).

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

See also