UIScreen.Brightness Property

Definition

The brightness level of this UIScreen.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual nfloat Brightness { [Foundation.Export("brightness")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setBrightness:")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.Brightness : nfloat with get, set

Property Value

Ranges from 0.0 (minimum brightness) to 1.0.

Attributes

Remarks

This value affects the screen only when the application is in the foreground. The system-wide brightness is used when other applications are in the foreground. In other words, applications do not need to store and reset the brightness as they are activated and de-activated.

Applies to