iOS Guides | Samples

UIKit.UITraitEnvironment Class

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

See Also: UITraitEnvironment

Syntax

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

Related content

Requirements

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

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

[read-only]
abstract
TraitCollectionUITraitCollection. Gets the trait collection that describes the environment.

Public Methods

abstract
TraitCollectionDidChange(UITraitCollection)
The trait collection changed.