sendAndroidIntent method

Future<bool> sendAndroidIntent(
  1. String action
)

Open Android settings using a raw intent action. returns operation successful or failure.

Implementation

Future<bool> sendAndroidIntent(String action) async {
  final success = await _androidMethodChannel.invokeMethod<bool>(
    'openAndroidIntent',
    {
      'action': action,
      'appSpecific': false,
    },
  );

  return success ?? false;
}