canResolveActivity method

Future<bool?> canResolveActivity()

Check whether the intent can be resolved to an activity.

This works only on Android platforms.

Implementation

Future<bool?> canResolveActivity() async {
  if (!_platform.isAndroid) {
    return false;
  }

  return await _channel.invokeMethod<bool>(
    'canResolveActivity',
    _buildArguments(),
  );
}