UITraitCollection.UserInterfaceStyle UITraitCollection.UserInterfaceStyle Property

Definition

Gets the user interface style to which this trait collection applies.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[get: Foundation.Export("userInterfaceStyle")]
[get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIUserInterfaceStyle UserInterfaceStyle { get; }
member this.UserInterfaceStyle : UIKit.UIUserInterfaceStyle

Property Value

The user interface style to which this trait collection applies.

Applies to