Trait UIContentView

Source
pub unsafe trait UIContentView: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn configuration(
        &self,
    ) -> Retained<ProtocolObject<dyn UIContentConfiguration>>
       where Self: Sized + Message { ... }
    unsafe fn setConfiguration(
        &self,
        configuration: &ProtocolObject<dyn UIContentConfiguration>,
    )
       where Self: Sized + Message { ... }
    unsafe fn supportsConfiguration(
        &self,
        configuration: &ProtocolObject<dyn UIContentConfiguration>,
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature UIContentConfiguration only.
Expand description

Provided Methods§

Source

unsafe fn configuration( &self, ) -> Retained<ProtocolObject<dyn UIContentConfiguration>>
where Self: Sized + Message,

Returns the current configuration of the view. Setting this property applies the new configuration to the view.

Source

unsafe fn setConfiguration( &self, configuration: &ProtocolObject<dyn UIContentConfiguration>, )
where Self: Sized + Message,

Setter for configuration.

Source

unsafe fn supportsConfiguration( &self, configuration: &ProtocolObject<dyn UIContentConfiguration>, ) -> bool
where Self: Sized + Message,

Whether this view is compatible with the provided configuration, meaning the view supports it being set to the configuration property and is capable of updating itself for the configuration. If not implemented, the view is assumed to be compatible with configuration classes that match the class of the view’s existing configuration.

Trait Implementations§

Source§

impl ProtocolType for dyn UIContentView

Source§

const NAME: &'static str = "UIContentView"

The name of the Objective-C protocol that this type represents. Read more
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 UIContentView
where T: ?Sized + Message + UIContentView,

Implementations on Foreign Types§

Source§

impl<T> UIContentView for ProtocolObject<T>
where T: ?Sized + UIContentView,

Implementors§

Source§

impl UIContentView for UIContentUnavailableView

Available on crate feature UIContentUnavailableView only.
Source§

impl UIContentView for UIListContentView

Available on crate feature UIListContentConfiguration only.