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 ↗