Interface IViewDelegate
interface IViewDelegate
Extends com.amazon.apmf.IStandard
Interface providing the APIs for receiving the initialization callback for custom view. Each custom view will be
associated with a single delegate instance. This delegate should optionally implement any combination of other delegate
interfaces as follows-
See also- IViewModule::makeViewWithDelegate.
Methods
onCreate()
This callback is invoked when the view is initialized (when the constructor of view is called). The callback will be invoked before thevoidonCreate(IView*view,IViewContext*context)
IView instance is returned from
IViewModule::makeViewWithDelegate. This callback is useful when a IView has to be
initialized with custom layers. This can be done by making use of IViewContext passed in the callback.
Parameters
view
IView* — Required
IView Instance to the view for callback.
context
IViewContext* — Required
IViewContext Instance to the context associated with the current view.

