Search packages, repositories and app categories

GitHub repositoryHofinity/DeviceInstalledApps-FlutterPlugin

DeviceInstalledApps-FlutterPlugin

Hofinity/DeviceInstalledApps-FlutterPlugin open-source repository details.

DeviceInstalledApps-FlutterPlugin project cover
Stars
4
Forks
6
Last push (UTC)
Oct 14, 2023
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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);
Hossein Shooshtari GitHub avatar
GitHub author

Hossein Shooshtari ↗

Hofinity
LanguagesKotlinDart

Packages published by this repository

Dependencies used

Dependency list 4 items

  • flutter{"sdk":"flutter"}
  • plugin_platform_interface^2.0.2
  • flutter_testDevelopment{"sdk":"flutter"}
  • flutter_lintsDevelopment^2.0.0

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗