---
title: AgeRangeService
framework: declaredagerange
role: symbol
role_heading: Structure
path: declaredagerange/agerangeservice
---

# AgeRangeService

A request for the age range of a person logged onto the current device.

## Declaration

```swift
struct AgeRangeService
```

## Overview

Overview Use AgeRangeService to request a person’s age range and manage their access to content on your app. This service enables you to create age-appropriate experiences while respecting people’s privacy and meeting regulatory requirements. The system presents an interface that describes the data you’re requesting and asks people to grant permission to share their age range with your app. The following code demonstrates how to request a person’s age range and determine what content to display on your app’s landing page based on their age group: The system may override your age gates based on the local regulations of the person’s geographic location. Age ranges provide the minimum information necessary for content decisions while protecting privacy. Parental controls and family sharing settings may affect the availability and accuracy of age information.

## Topics

### Retrieving the shared instance

- [shared](declaredagerange/agerangeservice/shared.md)

### Getting the age range

- [AgeRangeService.AgeRangeDeclaration](declaredagerange/agerangeservice/agerangedeclaration.md)
- [AgeRangeService.AgeRange](declaredagerange/agerangeservice/agerange.md)
- [requestAgeRange(ageGates:_:_:in:)](declaredagerange/agerangeservice/requestagerange(agegates:_:_:in:)-2go8c.md)
- [requestAgeRange(ageGates:_:_:in:)](declaredagerange/agerangeservice/requestagerange(agegates:_:_:in:)-4yo3r.md)
- [AgeRangeService.Response](declaredagerange/agerangeservice/response.md)
- [AgeRangeService.ParentalControls](declaredagerange/agerangeservice/parentalcontrols.md)

### Accessing regulatory features

- [isEligibleForAgeFeatures](declaredagerange/agerangeservice/iseligibleforagefeatures.md)

### Defining regulatory features

- [AgeRangeService.RegulatoryFeature](declaredagerange/agerangeservice/regulatoryfeature.md)
- [requiredRegulatoryFeatures](declaredagerange/agerangeservice/requiredregulatoryfeatures.md)

### Displaying update acknowledgments

- [showSignificantUpdateAcknowledgment(in:updateDescription:)](declaredagerange/agerangeservice/showsignificantupdateacknowledgment(in:updatedescription:).md)

### Handling errors

- [AgeRangeService.Error](declaredagerange/agerangeservice/error.md)

## See Also

### Age range requests

- [DeclaredAgeRangeAction](declaredagerange/declaredagerangeaction.md)
