iOS Guides | Samples

UIKit.UITraitEnvironment Class

The protocol for accessing a UIViewController's UIViewController.TraitCollection.

See Also: UITraitEnvironment


[Foundation.Register("UITraitEnvironment", false)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public abstract class UITraitEnvironment : NSObject, IDisposable, IUITraitEnvironment

Related content


Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions:

The members of UIKit.UITraitEnvironment are listed below.

See Also: NSObject

Protected Constructors

Default constructor, initializes a new instance of this class.
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

TraitCollectionUITraitCollection. Gets the trait collection that describes the environment.

Public Methods

The trait collection changed.