TVLockupViewComponent

Trait TVLockupViewComponent 

Source
pub unsafe trait TVLockupViewComponent: NSObjectProtocol {
    // Provided method
    unsafe fn updateAppearanceForLockupViewState(&self, state: UIControlState)
       where Self: Sized + Message { ... }
}
Available on crate feature TVLockupView only.
Expand description

Component views inside the lockup view may conform to this protocol in order to participate in the state changes of the containing lockup view by altering their appearances.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn updateAppearanceForLockupViewState(&self, state: UIControlState)
where Self: Sized + Message,

This is called when a lockup view’s state changes.

If implemented, allows the lockup view’s components to update their appearance when the lockup view’s state changes. This will also be called on the components’ subviews that conform to the protocol and implement the method.

Parameter state: The state of the lockup view. Relevant values are .normal, .highlighted (for pressed state), .enabled, and .focused.

Trait Implementations§

Source§

impl ProtocolType for dyn TVLockupViewComponent

Source§

const NAME: &'static str = "TVLockupViewComponent"

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 TVLockupViewComponent

Implementations on Foreign Types§

Source§

impl<T> TVLockupViewComponent for ProtocolObject<T>

Implementors§

Source§

impl TVLockupViewComponent for TVLockupHeaderFooterView

Available on crate feature TVLockupHeaderFooterView only.