语言

PackageManager.GetMemoryBudgets(ApplicationInfo) 方法

定义

返回给定 ApplicationInfo的应用程序的内存预算。

[Android.Runtime.Register("getMemoryBudgets", "(Landroid/content/pm/ApplicationInfo;)Ljava/util/List;", "GetGetMemoryBudgets_Landroid_content_pm_ApplicationInfo_Handler", ApiSince=37)]
public virtual System.Collections.Generic.IList<Android.Content.PM.MemoryBudgetInfo> GetMemoryBudgets(Android.Content.PM.ApplicationInfo info);
[<Android.Runtime.Register("getMemoryBudgets", "(Landroid/content/pm/ApplicationInfo;)Ljava/util/List;", "GetGetMemoryBudgets_Landroid_content_pm_ApplicationInfo_Handler", ApiSince=37)>]
abstract member GetMemoryBudgets : Android.Content.PM.ApplicationInfo -> System.Collections.Generic.IList<Android.Content.PM.MemoryBudgetInfo>
override this.GetMemoryBudgets : Android.Content.PM.ApplicationInfo -> System.Collections.Generic.IList<Android.Content.PM.MemoryBudgetInfo>

参数

info
ApplicationInfo

ApplicationInfo要查询的应用程序。

返回

与提供的应用程序信息关联的内存预算记录。

特性

注解

返回给定 ApplicationInfo 描述的应用程序的内存预算。

Android 参考。android.content.pm.PackageManager.getMemoryBudgets

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于