語言

PackageManager.GetInstalledApplications 方法

定義

多載

名稱 Description
GetInstalledApplications(PackageManager+ApplicationInfoFlags)

參見 getInstalledApplications(int)

GetInstalledApplications(PackageInfoFlags)

回傳目前使用者已安裝的所有應用程式套件清單。

GetInstalledApplications(PackageManager+ApplicationInfoFlags)

參見 getInstalledApplications(int)

[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>

參數

傳回

屬性

備註

參見 getInstalledApplications(int)

Android 參考資料。android.content.pm.PackageManager.getInstalledApplications

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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

新增選項旗標以修改回傳的資料。

傳回

一個 ApplicationInfo 物件清單,對應每個已安裝的應用程式。 若極不可能,則會回傳一個空清單。 若 MATCH_UNINSTALLED_PACKAGES 標記為 ,應用程式資訊會從已安裝應用程式清單中擷取(該清單包含已安裝的應用程式及有資料目錄的應用程式,即已設定標誌時已被刪除 DELETE_KEEP_DATA 的應用程式)。

屬性

備註

回傳目前使用者已安裝的所有應用程式套件清單。 若已設定GET_UNINSTALLED_PACKAGES標誌,將回傳包含已 DELETE_KEEP_DATA 刪除的應用程式(部分安裝且有資料目錄的應用程式)清單。

需要長旗時使用 #getInstalledApplications(ApplicationInfoFlags) 。

Java 文件 android.content.pm.PackageManager.getInstalledApplications(int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於