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 IMediaKeyStatusMap

interface IMediaKeyStatusMap
Extends com.amazon.apmf.IStandard A read-only map of key IDs to the current status of the associated key A key’s status is independent of whether the key is currently being used and of media data For further details see https://www.w3.org/TR/encrypted-media/#dom-mediakeystatusmap

Methods

getKeyIdList()

ContentKeyId[] getKeyIdList()
Gets all KeyIds present in the media key status map.

Returns

ContentKeyId[] The list of ContentKeyId

hasKey()

bool hasKey(ContentKeyId contentKeyId)
Checks if the ContentKeyId is present in the map.

Parameters

contentKeyId
ContentKeyId — Required The ContentKeyId that needs to be checked for.

Returns

bool true if the contentKeyId is available in the map, false otherwise

getKeyStatus()

MediaKeyStatus getKeyStatus(ContentKeyId contentKeyId)
Gets the key status identified by contentKeyId.

Parameters

contentKeyId
ContentKeyId — Required The MediaKeyID instance.

Returns

MediaKeyStatus the key status for the media key id.

getKeyCount()

i32 getKeyCount()
Gets the size of key-status map

Returns

i32 the number of keys in the status map
Last modified on October 22, 2026