Share via


UITraitCollection.FromUserInterfaceLevel(UIUserInterfaceLevel) Method

Definition

[Foundation.Export("traitCollectionWithUserInterfaceLevel:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UITraitCollection FromUserInterfaceLevel(UIKit.UIUserInterfaceLevel userInterfaceLevel);
[<Foundation.Export("traitCollectionWithUserInterfaceLevel:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromUserInterfaceLevel : UIKit.UIUserInterfaceLevel -> UIKit.UITraitCollection

Parameters

userInterfaceLevel
UIUserInterfaceLevel

Returns

Attributes

Applies to