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§
Sourceunsafe fn updateAppearanceForLockupViewState(&self, state: UIControlState)
unsafe fn updateAppearanceForLockupViewState(&self, state: UIControlState)
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.