Trait objc2_ui_kit::UITraitChangeObservable

source ·
pub unsafe trait UITraitChangeObservable: IsMainThreadOnly {
    // Provided method
    unsafe fn unregisterForTraitChanges(
        &self,
        registration: &ProtocolObject<dyn UITraitChangeRegistration>
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UITraitCollection only.

Provided Methods§

source

unsafe fn unregisterForTraitChanges( &self, registration: &ProtocolObject<dyn UITraitChangeRegistration> )
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn UITraitChangeObservable

source§

const NAME: &'static str = "UITraitChangeObservable"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn UITraitChangeObservable

Implementations on Foreign Types§

source§

impl<T> UITraitChangeObservable for ProtocolObject<T>

Implementors§

source§

impl UITraitChangeObservable for UIPresentationController

Available on crate feature UIPresentationController only.
source§

impl UITraitChangeObservable for UIView

Available on crate features UIResponder and UIView only.
source§

impl UITraitChangeObservable for UIViewController

Available on crate features UIResponder and UIViewController only.
source§

impl UITraitChangeObservable for UIWindowScene

Available on crate features UIResponder and UIScene and UIWindowScene only.