onRestrictionsChange
A callback function that is called when changes to a device’s restriction information changes.
Declaration
attribute function onRestrictionsChange;Discussion
The onRestrictionsChange attribute is used to update any activities that use a device’s restriction information. The attribute must be set to a function; for example, Settings.onRestrictionsChange = function () {}.