getAppLanguage static method

Future<AppLanguageSettings> getAppLanguage()

Reads the Android app-language selection.

Android 13 and newer return the system-managed per-app language. Older versions return TAT's device-local fallback selection.

Implementation

static Future<AppLanguageSettings> getAppLanguage() async {
  final result = await _channel.invokeMapMethod<String, Object?>(
    'getAppLanguage',
  );
  return (
    languageTag: result?['languageTag'] as String?,
    isSystemManaged: result?['isSystemManaged'] as bool? ?? false,
  );
}