---
title: Restrictions
framework: TVMLKit JS
role: symbol
role_heading: Class
platforms: [tvOS 9.0+]
path: tvmljs/restrictions
---

# Restrictions

An object used to retrieve rating restriction information.

## Declaration

```data
interface Restrictions
```

## Overview

Overview Different countries often allow different levels of content to be shown. This class also allows you to specify the maximum and minimum rankings for content. You cannot create an instance of the Restrictions class. An instance of this class is available from Settings.

## Topics

### Retrieving Restriction Information

- [allowsExplicit](tvmljs/restrictions/1627425-allowsexplicit.md)
- [maxMovieRank](tvmljs/restrictions/1627305-maxmovierank.md)
- [maxMovieRatingForCountry](tvmljs/restrictions/1627362-maxmovieratingforcountry.md)
- [maxTVShowRank](tvmljs/restrictions/1627434-maxtvshowrank.md)
- [maxTVShowRatingForCountry](tvmljs/restrictions/1627442-maxtvshowratingforcountry.md)

## See Also

### Device Settings

- [Device](tvmljs/device.md)
- [Settings](tvmljs/settings.md)
