Share via


IUITraitEnvironment Interface

Definition

This interface represents the Objective-C protocol UITraitEnvironment.

[Foundation.Protocol(Name="UITraitEnvironment", WrapperType=typeof(UIKit.UITraitEnvironmentWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="TraitCollectionDidChange", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UITraitCollection) }, Selector="traitCollectionDidChange:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="traitCollection", IsProperty=true, IsRequired=true, IsStatic=false, Name="TraitCollection", PropertyType=typeof(UIKit.UITraitCollection), Selector="traitCollection")]
public interface IUITraitEnvironment : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UITraitEnvironment", WrapperType=typeof(UIKit.UITraitEnvironmentWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="TraitCollectionDidChange", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UITraitCollection) }, Selector="traitCollectionDidChange:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="traitCollection", IsProperty=true, IsRequired=true, IsStatic=false, Name="TraitCollection", PropertyType=typeof(UIKit.UITraitCollection), Selector="traitCollection")>]
type IUITraitEnvironment = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.

A class may also implement members from this interface to implement members from the protocol.

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
TraitCollection

Gets the trait collection that describes the environment.

Methods

Name Description
TraitCollectionDidChange(UITraitCollection)

The trait collection that describes the environmnent changed.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to