UI Actions
UI Actions are a core feature of the UIView
system that allow developers to link custom behaviors to the view's visibility transitions (fade in/out). These actions implement the IUIViewAction
interface and are executed automatically when the UIView
's visibility changes.
Action Lifecycle
OnFadeIn
: Called when theUIView
becomes visible (fades in).OnFadeOut
: Called when theUIView
becomes hidden (fades out).
This provides a simple, event-driven way to manage UI behavior that needs to sync with the view's state.
Creating Custom Action
Adding Action to UIView
Last updated