Interface IMountDelegate
interface IMountDelegate
Extends com.amazon.apmf.IStandard
An IViewManager object can optionally implement
this IMountDelegate interface to perform mount/unmount
instructions on a component view instance. In case this is not
implemented then by default addChildAtIndex/removeChildAtIndex
apis of VegaUIFramework will be called respectively on the component
view instance.
Methods
mountChild()
Lifecycle method is invoked when a new child view is mounted.voidmountChild(com.amazon.kepler.uitoolkit.view.IView*parentView,com.amazon.kepler.uitoolkit.view.IView*childView,i32index)
Parameters
parentView
com.amazon.kepler.uitoolkit.view.IView* — Required
View instance on which new
view instance will be mounted.
childView
com.amazon.kepler.uitoolkit.view.IView* — Required
View instance which will
be mounted.
index
i32 — Required
Index at which the new child view
instance will be mounted.
unmountChild()
Lifecycle method is invoked when a child view is unmounted.voidunmountChild(com.amazon.kepler.uitoolkit.view.IView*parentView,com.amazon.kepler.uitoolkit.view.IView*childView,i32index)
Parameters
parentView
com.amazon.kepler.uitoolkit.view.IView* — Required
View instance whose child
view instance will be unmounted.
childView
com.amazon.kepler.uitoolkit.view.IView* — Required
View instance which will
be unmounted.
index
i32 — Required
Index from which the child view
instance will be removed.

