语言

MockPackageManager.GetApplicationLabelFormatted(ApplicationInfo) 方法

定义

返回要用于此应用程序的标签。

[Android.Runtime.Register("getApplicationLabel", "(Landroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence;", "GetGetApplicationLabel_Landroid_content_pm_ApplicationInfo_Handler")]
public override Java.Lang.ICharSequence? GetApplicationLabelFormatted(Android.Content.PM.ApplicationInfo? info);
[<Android.Runtime.Register("getApplicationLabel", "(Landroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence;", "GetGetApplicationLabel_Landroid_content_pm_ApplicationInfo_Handler")>]
override this.GetApplicationLabelFormatted : Android.Content.PM.ApplicationInfo -> Java.Lang.ICharSequence

参数

info
ApplicationInfo

要获取其标签的应用程序。

返回

不返回任何值。 默认模拟实现引发 UnsupportedOperationException;重写此方法以提供测试结果。

特性

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于