Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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()

void onCreate(IView* view, IViewContext* context)
This callback is invoked when the view is initialized (when the constructor of view is called). The callback will be invoked before the 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.
Last modified on October 29, 2026