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 IDrawableLayerDelegate

interface IDrawableLayerDelegate
Extends com.amazon.apmf.IStandard Custom drawing callback required to construct drawable layer.

Methods

onDraw()

void onDraw(ICanvas* canvas, IDrawableLayer* layer)
Implements custom drawing logic on the provided ICanvas. This method is called to perform custom drawing operations on the provided ICanvas, using the context of the drawable layer. It is strongly advised not to take any strong reference of the layer in this callback as it could result in cyclic dependency.

Parameters

canvas
ICanvas* — Required The ICanvas to draw and IPaint on.
layer
IDrawableLayer* — Required Drawable layer being drawn, providing access to its properties and methods.
Last modified on October 29, 2026