startActivityForResult function

Future<android_content_Intent> startActivityForResult (
  1. String activityClass,
  2. {@required int requestCode,
  3. Map<String, dynamic> extras = const {}}
)

Implementation

Future<android_content_Intent> startActivityForResult(
  String activityClass, {
  @required int requestCode,
  Map<String, dynamic> extras = const {},
}) async {
  assert(
    activityClass != null && activityClass.isNotEmpty && requestCode != null,
  );
  final result = await kMethodChannel.invokeMethod(
    'PlatformService::startActivityForResult',
    {
      'activityClass': activityClass,
      'extras': extras,
      'requestCode': requestCode,
    },
  );
  return android_content_Intent()
    ..refId = result
    ..tag__ = 'platform';
}