---
title: onRestrictionsChange
framework: TVMLKit JS
role: symbol
role_heading: Instance Property
platforms: [tvOS 9.0+]
path: tvmljs/settings/1627370-onrestrictionschange
---

# onRestrictionsChange

A callback function that is called when changes to a device’s restriction information changes.

## Declaration

```data
attribute function onRestrictionsChange;
```

## Discussion

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 () {}.

## See Also

### Retrieving Setting Information

- [restrictions](tvmljs/settings/1627378-restrictions.md)
- [language](tvmljs/settings/1627439-language.md)
- [storefrontCountryCode](tvmljs/settings/1627376-storefrontcountrycode.md)
