ParentalControlsPreferenceReaderTmGlue
调用TM的IParentalControlsComponent的模块私有实现。通过ParentalControlsComponent在出厂时构造。
实现
构造函数
new ParentalControlsPreferenceReaderTmGlue()
new ParentalControlsPreferenceReaderTmGlue():
ParentalControlsPreferenceReaderTmGlue
返回值
ParentalControlsPreferenceReaderTmGlue
方法
getContentRestrictionLevel()
getContentRestrictionLevel():
Promise<IContentRestrictionLevel>
获取当前针对设备所实施的最严格的限制级别。
针对应通过PIN验证来限制在此设备上播放的媒体内容,返回用户设备本地首选项。
返回值
Promise<IContentRestrictionLevel>
注意
当isEnabled() == false时,家长监护不会主动执行内容限制。
实现
IParentalControlsPreferenceReaderV2.getContentRestrictionLevel
getPinProtectAppLaunchPreference()
getPinProtectAppLaunchPreference():
Promise<boolean>
Experimental
在com.amazon.kepler.parental_controls_experimental_beta2_20240214中提供
返回值
Promise<boolean>
实现
IParentalControlsPreferenceReaderV2.getPinProtectAppLaunchPreference
getPinProtectProfileSwitchPreference()
getPinProtectProfileSwitchPreference():
Promise<boolean>
Experimental
在com.amazon.kepler.parental_controls_experimental_beta2_20240214中提供
返回值
Promise<boolean>
实现
IParentalControlsPreferenceReaderV2.getPinProtectProfileSwitchPreference
getPinProtectPurchasePreference()
getPinProtectPurchasePreference():
Promise<boolean>
Experimental
在com.amazon.kepler.parental_controls_experimental_beta2_20240214中提供
返回值
Promise<boolean>
实现
IParentalControlsPreferenceReaderV2.getPinProtectPurchasePreference
isEnabled()
isEnabled():
Promise<boolean>
返回设备本地状态,以了解是否启用了家长监护。必须启用家长监护才能使任何子功能(例如以PIN保护应用的启动或购买)生效。
返回值
Promise<boolean>
如果为设备启用了家长监护,则为true,否则为false。
实现
IParentalControlsPreferenceReaderV2.isEnabled
Last updated: 2025年9月30日

