AgeRangeSignalsPlatform class abstract

The interface every age_range_signals platform implementation extends.

The default implementation, MethodChannelAgeRangeSignals, talks to the Play Age Signals API on Android and the DeclaredAgeRange API on iOS over a method channel. Replace instance to stub the plugin in tests.

Do not call this from application code. instance bypasses the argument validation performed by the public AgeRangeSignals wrapper, so use that instead.

Inheritance
  • Object
  • PlatformInterface
  • AgeRangeSignalsPlatform
Implementers

Constructors

AgeRangeSignalsPlatform()
Constructs a AgeRangeSignalsPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkAgeSignals() Future<AgeSignalsResult>
Checks the age signals for the current user.
getRequiredRegulatoryFeatures() Future<Set<AgeRegulatoryFeature>>
Returns the regulatory features Apple reports as required for the current user (iOS 26.4+).
initialize({List<int>? ageGates, bool useMockData = false, AgeSignalsMockData? mockData}) Future<void>
Initializes the plugin with platform-specific configuration.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestAgeSignalsAccess() Future<AgeSignalsAccessStatus>
Requests access to the current user's age signals (Android).
showSignificantUpdateAcknowledgment({required String updateDescription}) Future<void>
Shows Apple's system acknowledgment sheet for a significant app update (iOS 26.4+).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance AgeRangeSignalsPlatform
The default instance of AgeRangeSignalsPlatform to use.
getter/setter pair