age_range_signals library

Age verification for Flutter, backed by the platform's own age signals.

This is the entry point most apps need. Import it and call AgeRangeSignals.instance; the method channel and platform interface libraries are plumbing and should not be imported directly.

Classes

AgeRangeSignals
Flutter plugin for age verification.
AgeSignalsMockData
Configuration for mock/test data used when useMockData is true.
AgeSignalsResult
Result returned from checking age signals.

Enums

AgeDeclarationSource
Source of the age declaration (iOS only).
AgeRangeSource
How Google Play established the user's age range (Android only).
AgeRegulatoryFeature
A regulatory action Apple reports as required for the current user (iOS 26.4+ only).
AgeSignalsAccessStatus
Outcome of requesting access to the user's age signals.
AgeSignalsStatus
Status of the age verification check.
SignificantChangeStatus
Parent approval state for significant app changes (Android only).

Exceptions / Errors

AgeSignalsException
Base exception for age signals operations.
ApiErrorException
Exception thrown when the platform API encounters an error.
ApiNotAvailableException
Exception thrown when the API is not available on the platform.
MissingEntitlementException
Exception thrown when the required entitlement is missing or not approved.
MockDataNotAllowedException
Exception thrown when mock data is requested in a non-debuggable build.
NetworkErrorException
Exception thrown when a network error occurs.
NotInitializedException
Exception thrown when the plugin has not been initialized.
PlayServicesException
Exception thrown when Google Play Services is unavailable or outdated (Android).
UnsupportedPlatformException
Exception thrown when the platform version is incompatible.
UserCancelledException
Exception thrown when the user cancels the age verification prompt.
UserNotSignedInException
Exception thrown when the user is not signed in (Android).