Interface IViewContext
interface IViewContext
Extends com.amazon.apmf.IStandard
Interface holding the necessary information which is related to this view which can aid in
defining customization of the view drawing.
Methods
getAttachmentLayer()
Returns the attachment layer associated with the current context. Attachment layer holds all the child layers for thecom.amazon.kepler.uitoolkit.graphics.ILayer*getAttachmentLayer()
IView.
Returns
com.amazon.kepler.uitoolkit.graphics.ILayer*
ILayer Layer instance associated with this context.
getRootLayer()
Returns the root layer of the view associated with the current context.com.amazon.kepler.uitoolkit.graphics.ILayer*getRootLayer()
Returns
com.amazon.kepler.uitoolkit.graphics.ILayer*
ILayer Layer instance associated with this context.
requestFrame()
bool requestFrame()
Calls the graphics layer to request a new frame event to be relayed to this view. This will enqueue a callback
via the object added in IViewContext::addFrameEventListener when a new frame is about to be presented on the window.
Returns
bool
bool Whether the frame event request was successfully acknowledged or not.
addFrameEventListener()
This method adds frame event listener and returns a subscription object related to it. Frame events are used to listen to display sync events.com.amazon.apmf.ISubscription*addFrameEventListener(IFrameEventListener*frameEventListener)
Parameters
frameEventListener
IFrameEventListener* — Required
Pointer to an instance of IFrameEventListener.
Returns
com.amazon.apmf.ISubscription*
ISubscription object related to the listener

