Trait UIContentConfiguration

Source
pub unsafe trait UIContentConfiguration:
    NSObjectProtocol
    + NSCopying
    + MainThreadOnly {
    // Provided methods
    unsafe fn makeContentView(&self) -> Retained<UIView>
       where Self: Sized + Message { ... }
    unsafe fn updatedConfigurationForState(
        &self,
        state: &ProtocolObject<dyn UIConfigurationState>,
    ) -> Retained<Self>
       where Self: Sized + Message { ... }
}
Available on crate feature UIContentConfiguration only.
Expand description

Provided Methods§

Source

unsafe fn makeContentView(&self) -> Retained<UIView>
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.

Initializes and returns a new instance of the content view using this configuration.

Source

unsafe fn updatedConfigurationForState( &self, state: &ProtocolObject<dyn UIConfigurationState>, ) -> Retained<Self>
where Self: Sized + Message,

Available on crate feature UIConfigurationState only.

Returns a copy of the configuration updated for the specified state, by applying the configuration’s default values for that state to any properties that have not been customized.

Trait Implementations§

Source§

impl ProtocolType for dyn UIContentConfiguration

Source§

const NAME: &'static str = "UIContentConfiguration"

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 UIContentConfiguration

Implementations on Foreign Types§

Source§

impl<T> UIContentConfiguration for ProtocolObject<T>

Implementors§

Source§

impl UIContentConfiguration for UIContentUnavailableConfiguration

Available on crate feature UIContentUnavailableConfiguration only.
Source§

impl UIContentConfiguration for UIListContentConfiguration

Available on crate feature UIListContentConfiguration only.