getApps method
Future<List<AppInfo> >
getApps({
- AppType appType = AppType.all,
- LaunchType launchType = LaunchType.all,
override
Implementation
@override
Future<List<AppInfo>> getApps({AppType appType = AppType.all, LaunchType launchType = LaunchType.all}) async {
try {
final List<dynamic> result = await methodChannel.invokeMethod('getApps', {
"appType": appType.index,
"launchType": launchType.index
});
List<AppInfo> ourApps =
result.map((e) => AppInfo.fromAndroidData(e)).toList();
return ourApps;
} catch (err) {
throw Exception("Can't get the applications: $err");
}
}