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
Methods
addRecommendations()
staticaddRecommendations(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
Returns
number[]
getMajorVersion()
staticgetMajorVersion():number
Get the Major version of the underlying native module. This can be used to make version checks.
Returns
number
getMinorVersion()
staticgetMinorVersion():number
Get the Minor version of the underlying native module. This can be used to make version checks.
Returns
number
getPatchVersion()
staticgetPatchVersion():number
Get the patch version of the underlying native module. This can be used to make version checks.
Returns
number
removeAllRecommendations()
staticremoveAllRecommendations():void
Removes all the recommendations sent previously by this client.
Returns
void
removeRecommendations()
staticremoveRecommendations(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: Oct 02, 2025

