device_installed_apps 1.0.1 copy "device_installed_apps: ^1.0.1" to clipboard
device_installed_apps: ^1.0.1 copied to clipboard

PlatformAndroid

Plugin for Flutter with methods related to device installed apps.

device_installed_apps #

A new Flutter plugin project.

Getting Started #

Plugin for Flutter with methods related to device installed apps.

Supported platform
Android

Installation Guide #

Usage #

Device installed apps

List<AppInfo> apps = await DeviceDeviceInstalledApps.getApps(
							String bundleIdPrefix,
							bool includeSystemApps, 
							bool includeIcon,
		      				List<String> permissions,
      						bool shouldHasAllPermissions);
Example
var permissions = ['android.permission.NFC','android.permission.ACCESS_FINE_LOCATION'];
List<AppInfo> apps = await DeviceDeviceInstalledApps.getApps(includeSystemApps: true, permissions: permissions, bundleIdPrefix: 'com.hofinity', shouldHasAllPermissions: false);

Device system apps

List<AppInfo> apps = await DeviceDeviceInstalledApps.getSystemApps(
							String bundleIdPrefix,
							bool includeIcon,
		      				List<String> permissions,
      						bool shouldHasAllPermissions);
Example
var permissions = ['android.permission.NFC','android.permission.ACCESS_FINE_LOCATION'];
List<AppInfo> apps = await DeviceDeviceInstalledApps.getSystemApps(permissions: permissions, bundleIdPrefix: 'com.hofinity', shouldHasAllPermissions: false);

Device installed apps bundleIds

List<String> apps = await DeviceDeviceInstalledApps.getAppsBundleIds(
							String bundleIdPrefix,
							bool includeSystemApps, 
							bool includeIcon,
		      				List<String> permissions,
      						bool shouldHasAllPermissions);
Example
var permissions = ['android.permission.NFC','android.permission.ACCESS_FINE_LOCATION'];
List<String> apps = await DeviceDeviceInstalledApps.getAppsBundleIds(includeSystemApps: true, permissions: permissions, bundleIdPrefix: 'com.hofinity', shouldHasAllPermissions: false);

Get an app info

AppInfo app = await DeviceInstalledApps.getAppInfo(String bundleId);

Launch an app

DeviceInstalledApps.launchApp(String bundleId);

Open app os settings

DeviceInstalledApps.openSettings(String bundleId);

Check if an app is system app

bool isSystemApp = await DeviceInstalledApps.isSystemApp(String bundleId);
30
likes
140
points
439
downloads

Publisher

verified publisherhofinity.com

Weekly Downloads

Plugin for Flutter with methods related to device installed apps.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on device_installed_apps