v1.0.1
device_installed_apps
用于 Flutter 的插件,包含与设备已安装应用相关的各种方法。
31喜欢 115近 30 天下载140Pub 分数
Android
Hofinity/DeviceInstalledApps-FlutterPlugin open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
A new Flutter plugin project.
Plugin for Flutter with methods related to device installed apps.
| Supported platform |
|---|
| Android |
List<AppInfo> apps = await DeviceDeviceInstalledApps.getApps(
String bundleIdPrefix,
bool includeSystemApps,
bool includeIcon,
List<String> permissions,
bool shouldHasAllPermissions);
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);
List<AppInfo> apps = await DeviceDeviceInstalledApps.getSystemApps(
String bundleIdPrefix,
bool includeIcon,
List<String> permissions,
bool shouldHasAllPermissions);
var permissions = ['android.permission.NFC','android.permission.ACCESS_FINE_LOCATION'];
List<AppInfo> apps = await DeviceDeviceInstalledApps.getSystemApps(permissions: permissions, bundleIdPrefix: 'com.hofinity', shouldHasAllPermissions: false);
List<String> apps = await DeviceDeviceInstalledApps.getAppsBundleIds(
String bundleIdPrefix,
bool includeSystemApps,
bool includeIcon,
List<String> permissions,
bool shouldHasAllPermissions);
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);
AppInfo app = await DeviceInstalledApps.getAppInfo(String bundleId);
DeviceInstalledApps.launchApp(String bundleId);
DeviceInstalledApps.openSettings(String bundleId);
bool isSystemApp = await DeviceInstalledApps.isSystemApp(String bundleId);
依赖清单 4 项
{"sdk":"flutter"}^2.0.2{"sdk":"flutter"}^2.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗