as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

default

API for adding and removing recommendations on device.

RecommendationManager is a local recommendation service on device that takes in the recommendations provided by client applications and displays them on the device home screen.

Extended by

Constructors

new default()

new default(): default

Returns

default

Methods

addRecommendations()

static addRecommendations(recommendations): number[]

Adds new recommendations on this device to be shown to user. The application has a predefined maximum limit for the number of recommendations it can hold concurrently. If this limit is surpassed, the system will delete older items based on their received timestamps

required privilege : "com.amazon.privilege.security.file-sharing"

Parameters

recommendations

Recommendation[]

Returns

number[]


getMajorVersion()

static getMajorVersion(): number

Get the Major version of the underlying native module. This can be used to make version checks.

Returns

number


getMinorVersion()

static getMinorVersion(): number

Get the Minor version of the underlying native module. This can be used to make version checks.

Returns

number


getPatchVersion()

static getPatchVersion(): number

Get the patch version of the underlying native module. This can be used to make version checks.

Returns

number


removeAllRecommendations()

static removeAllRecommendations(): void

Removes all the recommendations sent previously by this client.

Returns

void


removeRecommendations()

static removeRecommendations(ids): void

Removes recommendations sent previously. Any recommendation id present for this client are removed, any ids not found are ignored.

Parameters

ids

number[]

array that contains recommendation ids to be removed.

Returns

void


Last updated: Sep 30, 2025