getAppsBundleIds method

  1. @override
Future<List<String>> getAppsBundleIds(
  1. String bundleIdPrefix,
  2. bool includeSystemApps,
  3. List<String> permissions,
  4. bool shouldHasAllPermissions,
)
override

Implementation

@override
Future<List<String>> getAppsBundleIds(
  String bundleIdPrefix,
  bool includeSystemApps,
  List<String> permissions,
  bool shouldHasAllPermissions,
) async {
  List<String> apps = await methodChannel.invokeListMethod<String>(
        'getAppsBundleIds',
        {
          'bundleIdPrefix': bundleIdPrefix,
          'includeSystemApps': includeSystemApps,
          'permissions': permissions,
          'hasAllPermissions': shouldHasAllPermissions,
        },
      ) ??
      [];
  return apps;
}