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

Data object SaveLayerConfig

interface struct SaveLayerConfig
Configuration data object for ICanvas3::saveLayerWithConfig. All fields are nullable. Constructed using the builder pattern via MakeBuilderFor<SaveLayerConfig>(). See graphics-Canvas_UserGuide.md for usage examples and backdrop filter behavior details.

Fields

bounds

Rect? — Optional
Optional bounds hint that limits the size of the offscreen layer allocation. When null, the offscreen buffer is sized to cover the entire current clip region. Note: This field is ignored when ::backdropFilter is set. To constrain the affected region with a backdrop filter, use clipRect()/clipRRect() before calling saveLayerWithConfig.

paint

IPaint? — Optional
The paint applied when compositing the layer back at restore() time (alpha, blend mode, color filter). If null, no paint options would be applied.

backdropFilter

IImageFilter? — Optional
Last modified on October 29, 2026