---
title: maximumAllowedAgeRating
framework: marketplacekit
role: symbol
role_heading: Instance Property
path: marketplacekit/applibrary/maximumallowedagerating
---

# maximumAllowedAgeRating

An age rating that specifies the maximum rating set for content on the device.

## Declaration

```swift
@MainActor final var maximumAllowedAgeRating: Int { get }
```

## Mentioned in

Providing age-rating appropriate content

## Discussion

Discussion The framework derives the value of this property according to the restrictions set on the device. The value is a code that maps to the following age ratings:  |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |

## See Also

### Checking for age-rating based content restrictions

- [AppLibrary.ExceptionRequest](marketplacekit/applibrary/exceptionrequest.md)
- [currentAgeExceptionRequests()](marketplacekit/applibrary/currentageexceptionrequests().md)
