isEligibleForAgeFeatures method

  1. @override
Future<bool> isEligibleForAgeFeatures()
override

Reports whether Apple considers the current user subject to age assurance (iOS 26.2+).

Throws UnsupportedPlatformException on Android, on iOS below 26.2 and in apps built with a pre-26.2 SDK.

Implementation

@override
Future<bool> isEligibleForAgeFeatures() async {
  try {
    final eligible = await methodChannel.invokeMethod<bool>(
      'isEligibleForAgeFeatures',
    );
    if (eligible == null) {
      throw const AgeSignalsException('Received null result from platform');
    }
    return eligible;
  } on PlatformException catch (e) {
    throw _handlePlatformException(e);
  }
}