UITraitCollection.FromDisplayGamut(UIDisplayGamut) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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