getResolvedActivity method
Get the default activity that will resolve the intent
Note: ensure the calling app's AndroidManifest contains queries that match the intent. See: https://developer.android.com/guide/topics/manifest/queries-element
Implementation
Future<ResolvedActivity?> getResolvedActivity() async {
if (!_platform.isAndroid) {
return null;
}
final result = await _channel.invokeMethod<Map<Object?, Object?>>(
'getResolvedActivity',
_buildArguments(),
);
if (result != null) {
return ResolvedActivity(
appName: result["appName"] as String,
activityName: result["activityName"] as String,
packageName: result["packageName"] as String,
);
}
return null;
}