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 IPlaceholderLayer

interface IPlaceholderLayer
Extends ILayer A ILayer subclass that does not affect the drawing but provides notifications for its size, position, and invalidation status. The primary purpose of IPlaceholderLayer is to send notifications for its size, position, and invalidation status.

Methods

addPlaceholderLayerListener()

com.amazon.apmf.ISubscription* addPlaceholderLayerListener(IPlaceholderLayerListener* listener)
This method registers a LayerListener object that will receive notifications about the layer’s size, position, and invalidation status. The listener must implement the IPlaceholderLayerListener interface and provide implementations for the callback methods.

Parameters

listener
IPlaceholderLayerListener* — Required The IPlaceholderLayerListener object to be registered.

Returns

com.amazon.apmf.ISubscription* an ISubscription object representing the subscription. The subscription can be used to manage or cancel the registration.
Last modified on October 29, 2026