UIKit.UITraitCollection Members

The members of UIKit.UITraitCollection are listed below.

See Also: Inherited members from Foundation.NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
DisplayScalenfloat. The specified display scale for this trait collection.
[read-only]
HorizontalSizeClassUIUserInterfaceSizeClass. The specified horizontal size class specified for this trait collection.
[read-only]
UserInterfaceIdiomUIUserInterfaceIdiom. The specified user interface idiom specified for this trait collection.
[read-only]
VerticalSizeClassUIUserInterfaceSizeClass. The specified vertical size class specified for this trait collection.

Public Methods

Contains(UITraitCollection) : bool
Probes whether this UITraitCollection contains all the traits specified.
Copy(Foundation.NSZone) : Foundation.NSObject
Performs a copy of the underlying Objective-C object.
EncodeTo(Foundation.NSCoder)
Encodes the state of the object on the provided encoder
static
FromDisplayScale(nfloat) : UITraitCollection
Creates a new UITraitCollection object where only the display scale has been specified.
static
FromHorizontalSizeClass(UIUserInterfaceSizeClass) : UITraitCollection
Creates a new UITraitCollection object where only the horizontal size class has been specified.
static
FromTraitsFromCollections(UITraitCollection[]) : UITraitCollection
Documentation for this section has not yet been entered.
static
FromUserInterfaceIdiom(UIUserInterfaceIdiom) : UITraitCollection
Creates a new UITraitCollection object where only the user interface idiom has been specified.
static
FromVerticalSizeClass(UIUserInterfaceSizeClass) : UITraitCollection
Creates a new UITraitCollection object where only the vertical size class has been specified.