搜尋套件、儲存庫與 APP 分類

套件詳情v1.0.1

device_installed_apps

用於 Flutter 的外掛程式,包含與裝置已安裝應用程式相關的方法。

Android
近 30 天下載
115
喜歡數
31
Pub 分數
140

安裝套件

flutter pub add device_installed_apps

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

device_installed_apps 套件是一個 Flutter 插件,提供方法來取得 Android 裝置上安裝應用程式的資訊。它讓開發者能夠列出已安裝的應用程式、存取其套件名稱,並取得如應用程式標籤與圖示等相關元資料。此套件專為 Android 所設計,能順暢整合至需要裝置層級應用可見性的 Flutter 應用中。該套件適用於系統工具、應用程式管理工具,或依賴已安裝應用程式資料的分析功能。它不支援 iOS,因此僅限於 Android 獨佔環境使用。

適用情境

  • 應用庫存追蹤
  • 系統實用程式開發
  • 已安裝應用的分析
  • 設備健康監控

主要特色

  • 列出已安裝的 Android 應用
  • 取得套件名稱和標籤
  • 存取應用元資料
  • 僅限 Android 的平台支援
  • 簡單的 API 結合

適合對象

  • 僅限 Android 的應用開發者
  • 系統工具創建者
  • 應用管理工具
  • 以分析為重點的應用程式

使用建議

  • 僅限 Android 平台
  • 需要執行時權限
  • 無 iOS 支援
  • 可能涉及隱私問題
  • 依賴於設備特定的實作

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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);

所屬分類

依賴

依賴清單 1 項

  • plugin_platform_interface^2.0.2

原始碼儲存庫

使用此套件的專案

暫無相關資料。