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 IShadowBuilder

interface IShadowBuilder
Extends com.amazon.apmf.IStandard IShadowBuilder interface helps in constructing a Shadow with specific properties. The IShadowBuilder interface assists in constructing a Shadow object with customized properties such as opacity, radius, color, and offset.

Methods

opacity()

void opacity(float opacity)
Sets the opacity of the shadow effect. This method sets the opacity of the shadow effect. Opacity can be in the range 0.0 to 1.0, where 0.0 represents totally transparent and 1.0 represents totally opaque. In case of incorrect opacity passed, the opacity will be clamped to defined range i.e. if value < 0.0, then opacity will be set to 0.0 and if value is > 1.0, then opacity will be set to 1.0. Default shadow opacity is 1.0.

Parameters

opacity
float — Required A float value representing the opacity of the shadow (0.0 to 1.0).

radius()

void radius(float radius)
Sets the radius of the shadow effect. This method sets the radius of the shadow effect. Default shadow radius is 0.0.

Parameters

radius
float — Required A float value representing the radius of the shadow.

color()

void color(Color* color)
Sets the color of the shadow effect. This method sets the color of the shadow effect. Default shadow color is Color::Transparent.

Parameters

color
Color* — Required The Color struct representing the color of the shadow.

offset()

void offset(Point offset)
Sets the offset of the shadow effect. This method sets the offset of the shadow effect. Default shadow offset is {0.0, 0.0}

Parameters

offset
Point — Required The Point object representing the offset of the shadow.

build()

IShadow* build()
Builds and returns the constructed Shadow object. This method constructs and returns the IShadow object using the configured properties.

Returns

IShadow* The IShadow object with the specified properties.
Last modified on October 29, 2026