AgeSignalsAccessStatus enum
Outcome of requesting access to the user's age signals.
Returned by AgeRangeSignals.instance.requestAgeSignalsAccess(). Since
age-signals 0.0.4 Google Play splits age signals across two calls: the
access request (which may show Play's in-app age sharing prompt) and
checkAgeSignals(), which only carries signals once access is shared.
Values
-
Age signals are shared; proceed to
checkAgeSignals().Play reports this when the user or their parent agreed to share, or in regions where sharing is automatic. Always returned on iOS, where consent is gathered inside
checkAgeSignals()itself and a refusal surfaces there asAgeSignalsStatus.declined. -
The user is not sharing age signals.
The user declined the prompt or previously chose not to share, a parent rejected sharing, or the user is not eligible. A decline is a normal outcome, not an error;
checkAgeSignals()carries no signals in this state. - verificationRequired → const AgeSignalsAccessStatus
-
The user must verify their age in the Play Store first.
Reported in regions with mandatory verification laws when the age is unknown. Play does not show the in-app prompt here; the user completes verification in the Play Store app.
- unknown → const AgeSignalsAccessStatus
-
Play reported a state this plugin version does not recognize.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromName(
String name) → AgeSignalsAccessStatus - Parses a status name coming over the platform channel.
Constants
-
values
→ const List<
AgeSignalsAccessStatus> - A constant List of the values in this enum, in order of their declaration.