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 IContentPersonalizationServer2

interface IContentPersonalizationServer2
Extends com.amazon.apmf.IStandard Interface for Content Personalization Server - v2

Methods

setContentEntitlementsHandlerForComponent()

void setContentEntitlementsHandlerForComponent(IContentEntitlementsHandlerAsync* contentEntitlementsHandler, com.amazon.kepler.runtime.IComponentInstance* component)
Sets the handler for specific component that will provide content entitlement data in response to commands.

Parameters

contentEntitlementsHandler
IContentEntitlementsHandlerAsync* — Required The handler for commands relating to content entitlement.
component
com.amazon.kepler.runtime.IComponentInstance* — Required The component instance for which the handler is being set. Example usage:

setCustomerListEntriesHandlerForComponent()

void setCustomerListEntriesHandlerForComponent(ICustomerListEntriesHandlerAsync* customerListEntriesHandler, com.amazon.kepler.runtime.IComponentInstance* component)
Sets the handler for specific component that will provide customer list entry data in response to commands.

Parameters

customerListEntriesHandler
ICustomerListEntriesHandlerAsync* — Required The handler for commands relating to customer lists.
component
com.amazon.kepler.runtime.IComponentInstance* — Required The component instance for which the handler is being set. Example usage:

setPlaybackEventsHandlerForComponent()

void setPlaybackEventsHandlerForComponent(IPlaybackEventsHandlerAsync* playbackEventsHandler, com.amazon.kepler.runtime.IComponentInstance* component)
Sets the handler for specific component that will provide playback event data in response to commands.

Parameters

playbackEventsHandler
IPlaybackEventsHandlerAsync* — Required The handler for commands relating to playback events.
component
com.amazon.kepler.runtime.IComponentInstance* — Required The component instance for which the handler is being set. Example usage:

reportNewContentInteraction()

void reportNewContentInteraction(IContentInteraction* contentInteraction)
Reports a customer has interacted with content (liked, disliked, watched trailer, etc..).

Parameters

contentInteraction
IContentInteraction* — Required The content interaction that has occurred. Example usage:

reportNewPlaybackEvent()

void reportNewPlaybackEvent(IPlaybackEvent* playbackEvent)
Reports updates about the customers playback behavior while they are actively in playback.

Parameters

playbackEvent
IPlaybackEvent* — Required The playback event that just occurred on the device. Example usage:

reportRefreshedPlaybackEvents()

void reportRefreshedPlaybackEvents()
Indicates that there are new updates about a customers playback behavior that occurred off-device that can be fetched. Before using this API, setPlaybackEventsHandlerForComponent needs to be called.

reportNewCustomerListEntry()

void reportNewCustomerListEntry(CustomerListTypeEnum listType, ICustomerListEntry* entry)
Reports that the customer has inserted a new entry into a customer managed list. Only for entries inserted on-device due to customer action. Should be reported at time of insertion.

Parameters

listType
CustomerListTypeEnum — Required The type of customer list the entry was inserted into.
entry
ICustomerListEntry* — Required The entry added the customer list. Example usage:

reportRemovedCustomerListEntry()

void reportRemovedCustomerListEntry(CustomerListTypeEnum listType, ICustomerListEntry* entry)
Reports that the customer has removed an entry from a customer managed list. Only for entries removed from on-device due to customer action. Should be reported at time of removal.

Parameters

listType
CustomerListTypeEnum — Required The type of customer list the entry was removed from.
entry
ICustomerListEntry* — Required The entry removed from the customer list. Example usage:

reportRefreshedCustomerList()

void reportRefreshedCustomerList(CustomerListTypeEnum listType)
Indicates that there have been changes to a customer managed list due to off-device actions and a new refreshed version of the customer managed list should be fetched Before using this API, setCustomerListEntriesHandlerForComponent needs to be called.

Parameters

listType
CustomerListTypeEnum — Required The type of customer list that has changed.

reportNewContentEntitlement()

void reportNewContentEntitlement(IContentEntitlement* entitlement)
Reports that the customer has a new individual content entitlement inserted into their existing content entitlement list. Only for entitlement not already contained in subscriptions. Only for entitlement inserted due to on-device customer action. Should be reported at time of insertion.

Parameters

entitlement
IContentEntitlement* — Required The new enitlement. Example usage:

reportRemovedContentEntitlement()

void reportRemovedContentEntitlement(IContentEntitlement* entitlement)
Reports that the customer no longer has a individual content entitlement in their existing content entitlement list. Only for entitlement not contained in subscriptions. Only for entitlement that is no longer valid or expires due to due to on-device action. Should be reported at time of removal.

Parameters

entitlement
IContentEntitlement* — Required The removed enitlement. Example usage:

reportRefreshedContentEntitlements()

void reportRefreshedContentEntitlements()
Indicates that there have been changes to the individual content entitlement due to off-device actions and a new refreshed list of content entitlement should be fetched. Before using this API, setContentEntitlementsHandlerForComponent needs to be called.
Last modified on October 22, 2026