パッケージ、リポジトリ、アプリカテゴリを検索

GitHub リポジトリHofinity/DeviceInstalledApps-FlutterPlugin

DeviceInstalledApps-FlutterPlugin

Hofinity/DeviceInstalledApps-FlutterPlugin open-source repository details.

DeviceInstalledApps-FlutterPlugin のプロジェクト画像
スター
4
フォーク
6
最終プッシュ(UTC)
2023/10/14
プロジェクト状態
公開中

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

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 作者

Hossein Shooshtari ↗

Hofinity
言語KotlinDart

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 4 件

  • flutter{"sdk":"flutter"}
  • plugin_platform_interface^2.0.2
  • flutter_test開発用{"sdk":"flutter"}
  • flutter_lints開発用^2.0.0

プロジェクトに合うリポジトリを選ぶには?

用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。

  1. 名前・作者・説明で検索し、技術トピックで絞り込みます。
  2. スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
  3. 利用前に GitHub で README、ライセンス、Issues を確認します。

情報源と管理

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

GitHub Docs — About repositories ↗