PackageManager.GetInstalledApplications メソッド

定義

オーバーロード

GetInstalledApplications(PackageInfoFlags)

現在のユーザー用にインストールされているすべてのアプリケーション パッケージの一覧を返します。

GetInstalledApplications(PackageManager+ApplicationInfoFlags)

GetInstalledApplications(PackageInfoFlags)

現在のユーザー用にインストールされているすべてのアプリケーション パッケージの一覧を返します。

[Android.Runtime.Register("getInstalledApplications", "(I)Ljava/util/List;", "GetGetInstalledApplications_IHandler")]
public abstract System.Collections.Generic.IList<Android.Content.PM.ApplicationInfo> GetInstalledApplications (Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getInstalledApplications", "(I)Ljava/util/List;", "GetGetInstalledApplications_IHandler")>]
abstract member GetInstalledApplications : Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ApplicationInfo>

パラメーター

flags
PackageInfoFlags

返されるデータを変更するための追加のオプション フラグ。

戻り値

インストールされているアプリケーションごとに 1 つずつ、ApplicationInfo オブジェクトのリスト。 万一、パッケージがインストールされていない場合は、空のリストが返されます。 フラグ MATCH_UNINSTALLED_PACKAGES が設定されている場合、アプリケーション情報はアンインストールされたアプリケーションの一覧から取得されます (これには、インストールされているアプリケーションと、データ ディレクトリを持つアプリケーション、つまりフラグが設定された状態で DELETE_KEEP_DATA 削除されたアプリケーションが含まれます)。

属性

注釈

現在のユーザー用にインストールされているすべてのアプリケーション パッケージの一覧を返します。 フラグ GET_UNINSTALLED_PACKAGESが設定されている場合は、 で削除された DELETE_KEEP_DATA アプリケーション (データ ディレクトリを含む部分的にインストールされたアプリ) を含むすべてのアプリケーションの一覧が返されます。

長いフラグが必要な場合に使用 #getInstalledApplications(ApplicationInfoFlags) します。

の Java ドキュメント android.content.pm.PackageManager.getInstalledApplications(int)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

GetInstalledApplications(PackageManager+ApplicationInfoFlags)

[Android.Runtime.Register("getInstalledApplications", "(Landroid/content/pm/PackageManager$ApplicationInfoFlags;)Ljava/util/List;", "GetGetInstalledApplications_Landroid_content_pm_PackageManager_ApplicationInfoFlags_Handler", ApiSince=33)]
public virtual System.Collections.Generic.IList<Android.Content.PM.ApplicationInfo> GetInstalledApplications (Android.Content.PM.PackageManager.ApplicationInfoFlags flags);
[<Android.Runtime.Register("getInstalledApplications", "(Landroid/content/pm/PackageManager$ApplicationInfoFlags;)Ljava/util/List;", "GetGetInstalledApplications_Landroid_content_pm_PackageManager_ApplicationInfoFlags_Handler", ApiSince=33)>]
abstract member GetInstalledApplications : Android.Content.PM.PackageManager.ApplicationInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ApplicationInfo>
override this.GetInstalledApplications : Android.Content.PM.PackageManager.ApplicationInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ApplicationInfo>

パラメーター

戻り値

属性

適用対象