Share via


IUITraitChangeObservable Interface

Definition

This interface represents the Objective-C protocol UITraitChangeObservable.

[Foundation.Protocol(Name="UITraitChangeObservable", WrapperType=typeof(UIKit.UITraitChangeObservableWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity2V176) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(System.Action<UIKit.IUITraitEnvironment,UIKit.UITraitCollection>) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withHandler:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(Foundation.NSObject), typeof(ObjCRuntime.Selector) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withTarget:action:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(ObjCRuntime.Selector) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withAction:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="UnregisterForTraitChanges", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.IUITraitChangeRegistration) }, Selector="unregisterForTraitChanges:")]
public interface IUITraitChangeObservable : IDisposable, ObjCRuntime.INativeObject
[Foundation.Protocol(Name="UITraitChangeObservable", WrapperType=typeof(UIKit.UITraitChangeObservableWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(Foundation.NSObject), typeof(ObjCRuntime.Selector) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withTarget:action:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(ObjCRuntime.Selector) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withAction:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="UnregisterForTraitChanges", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.IUITraitChangeRegistration) }, Selector="unregisterForTraitChanges:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity2V169) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(System.Action<UIKit.IUITraitEnvironment,UIKit.UITraitCollection>) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withHandler:")]
public interface IUITraitChangeObservable : IDisposable, ObjCRuntime.INativeObject
[Foundation.Protocol(Name="UITraitChangeObservable", WrapperType=typeof(UIKit.UITraitChangeObservableWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(Foundation.NSObject), typeof(ObjCRuntime.Selector) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withTarget:action:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(ObjCRuntime.Selector) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withAction:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="UnregisterForTraitChanges", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.IUITraitChangeRegistration) }, Selector="unregisterForTraitChanges:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity2V100) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(System.Action<UIKit.IUITraitEnvironment,UIKit.UITraitCollection>) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withHandler:")]
public interface IUITraitChangeObservable : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UITraitChangeObservable", WrapperType=typeof(UIKit.UITraitChangeObservableWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity2V176) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(System.Action<UIKit.IUITraitEnvironment,UIKit.UITraitCollection>) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withHandler:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(Foundation.NSObject), typeof(ObjCRuntime.Selector) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withTarget:action:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(ObjCRuntime.Selector) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withAction:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="UnregisterForTraitChanges", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.IUITraitChangeRegistration) }, Selector="unregisterForTraitChanges:")>]
type IUITraitChangeObservable = interface
    interface INativeObject
    interface IDisposable
[<Foundation.Protocol(Name="UITraitChangeObservable", WrapperType=typeof(UIKit.UITraitChangeObservableWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(Foundation.NSObject), typeof(ObjCRuntime.Selector) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withTarget:action:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(ObjCRuntime.Selector) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withAction:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="UnregisterForTraitChanges", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.IUITraitChangeRegistration) }, Selector="unregisterForTraitChanges:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity2V169) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(System.Action<UIKit.IUITraitEnvironment,UIKit.UITraitCollection>) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withHandler:")>]
type IUITraitChangeObservable = interface
    interface INativeObject
    interface IDisposable
[<Foundation.Protocol(Name="UITraitChangeObservable", WrapperType=typeof(UIKit.UITraitChangeObservableWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(Foundation.NSObject), typeof(ObjCRuntime.Selector) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withTarget:action:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(ObjCRuntime.Selector) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withAction:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="UnregisterForTraitChanges", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.IUITraitChangeRegistration) }, Selector="unregisterForTraitChanges:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RegisterForTraitChanges", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity2V100) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class[]), typeof(System.Action<UIKit.IUITraitEnvironment,UIKit.UITraitCollection>) }, ReturnType=typeof(UIKit.IUITraitChangeRegistration), Selector="registerForTraitChanges:withHandler:")>]
type IUITraitChangeObservable = 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)

Methods

Name Description
NativeHandle_objc_msgSend_NativeHandle_BlockLiteral(IntPtr, IntPtr, NativeHandle, BlockLiteral*)
NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle(IntPtr, IntPtr, NativeHandle, NativeHandle, NativeHandle)
NativeHandle_objc_msgSend_NativeHandle_NativeHandle(IntPtr, IntPtr, NativeHandle, NativeHandle)
RegisterForTraitChanges(Action<IUITraitEnvironment,UITraitCollection>, Type[])

Registers a callback handler that will be executed when one of the specified traits changes.

RegisterForTraitChanges(Class[], Action<IUITraitEnvironment,UITraitCollection>)
RegisterForTraitChanges(Class[], NSObject, Selector)
RegisterForTraitChanges(Class[], Selector)
RegisterForTraitChanges(IUITraitDefinition[], Action<IUITraitEnvironment,UITraitCollection>)
RegisterForTraitChanges(IUITraitDefinition[], NSObject, Selector)
RegisterForTraitChanges(IUITraitDefinition[], Selector)
RegisterForTraitChanges(Type[], Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when one of the specified traits changes.

RegisterForTraitChanges(Type[], NSObject, Selector)

Registers a selector that will be called on the specified object when any of the specified traits changes.

RegisterForTraitChanges(Type[], Selector)

Registers a selector that will be called on the current object when any of the specified traits changes.

RegisterForTraitChanges<T>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when the specified trait changes.

RegisterForTraitChanges<T1,T2,T3,T4>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when any of the specified traits changes.

RegisterForTraitChanges<T1,T2,T3>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when any of the specified traits changes.

RegisterForTraitChanges<T1,T2>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when any of the specified traits changes.

ToClasses(IUITraitDefinition[])
ToClasses(Type[])
UnregisterForTraitChanges(IUITraitChangeRegistration)

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
RegisterForTraitChanges(IUITraitChangeObservable, Class[], NSObject, Selector)
RegisterForTraitChanges(IUITraitChangeObservable, Class[], Selector)
RegisterForTraitChanges(IUITraitChangeObservable, Class[], Action<IUITraitEnvironment,UITraitCollection>)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], NSObject, Selector)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], Selector)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], Action<IUITraitEnvironment,UITraitCollection>)

Applies to