as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

IParentalControlsPreferenceReader

Interface for reading parental controls preferences including the overall enablement state as well as the current media content restriction level.

However, regardless of whether parental controls is enabled, querying the preference state of getContentRestrictionLevel returns the user's preference for when parental controls is enabled. When isEnabled() == false , content restrictions are not actively enforced by Parental Controls.

All parental controls preferences are device-local.

Extended by

Methods

getContentRestrictionLevel()

getContentRestrictionLevel(): Promise<IContentRestrictionLevel>

Gets the most restrictive restriction level that is currently blocked for the device.

Returns the user's device-local preference of what media content playback on this device should be gated by a PIN challenge.

Returns

Promise<IContentRestrictionLevel>

Note

when isEnabled() == false, content restrictions will not be actively enforced by Parental Controls.


isEnabled()

isEnabled(): Promise<boolean>

Returns the device-local state for whether parental controls is enabled. Parental controls must be enabled for any of the sub-features (such as PIN-protecting app launches or purchases) to take effect.

Returns

Promise<boolean>

true if parental controls is enabled for the device else false.


Last updated: Sep 30, 2025