isEnabled() == false
, content restrictions are not actively enforced by Parental Controls.
All parental controls preferences are device-local.
Methods
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.
getContentRestrictionLevel()
getContentRestrictionLevel():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. whenPromise<IContentRestrictionLevel>
isEnabled() == false, content restrictions will not be
actively enforced by Parental Controls.
Returns
Promise<IContentRestrictionLevel>
