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
Skip to main content
Class providing various APIs for application asset resolution. This class’s APIs are used to obtain strings, numbers, and asset paths. Asset resolution uses device configuration qualifier values such as locale, day/night mode to determine the best possible asset for any combination of qualifiers.

Constructors

new default()

new default(): default

Returns

default

Methods

getMajorVersion()

static getMajorVersion(): number

Returns

number The major version number.

Brief

Get the major version number.

getMinorVersion()

static getMinorVersion(): number

Returns

number The minor version number.

Brief

Get the minor version number.

getNumber()

static getNumber(id, configuration?): number Gets the number whose identifier is passed in based on the current system configuration qualifiers or based on the provided configuration qualifiers.

Parameters

id
string The name of the number being queried.
configuration?
AssetConfiguration Optional configuration qualifiers to use in asset resolution. If these aren’t provided, system configuration qualifiers will be used.

Returns

number number

Throws

If AssetResolver execution fails, an Error is thrown.

getPatchVersion()

static getPatchVersion(): number

Returns

number The patch version number.

Brief

Get the patch version number.

getString()

static getString(id, configuration?): StringValue Gets the string and direction whose identifier is passed in based on the current system configuration qualifiers or based on the provided configuration qualifiers.

Parameters

id
string The name of the string being queried.
configuration?
AssetConfiguration Optional configuration qualifiers to use in asset resolution. If these aren’t provided, system configuration qualifiers will be used.

Returns

StringValue AssetResolverTypes.StringValue

Throws

If AssetResolver execution fails, an Error is thrown.
Last modified on October 2, 2025