Edytuj

Udostępnij za pośrednictwem


UITraitCollection.FromDisplayGamut(UIDisplayGamut) Method

Definition

Static factory method to create a new UITraitCollection appropriate to the specified displayGamut.

[Foundation.Export("traitCollectionWithDisplayGamut:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static UIKit.UITraitCollection FromDisplayGamut (UIKit.UIDisplayGamut displayGamut);
static member FromDisplayGamut : UIKit.UIDisplayGamut -> UIKit.UITraitCollection

Parameters

displayGamut
UIDisplayGamut

Returns

Attributes

Applies to