共用方式為


LabeledIntent.LoadLabelFormatted(PackageManager) Method

Definition

Retrieve the label associated with this object.

[Android.Runtime.Register("loadLabel", "(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;", "GetLoadLabel_Landroid_content_pm_PackageManager_Handler")]
public virtual Java.Lang.ICharSequence? LoadLabelFormatted (Android.Content.PM.PackageManager? pm);
[<Android.Runtime.Register("loadLabel", "(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;", "GetLoadLabel_Landroid_content_pm_PackageManager_Handler")>]
abstract member LoadLabelFormatted : Android.Content.PM.PackageManager -> Java.Lang.ICharSequence
override this.LoadLabelFormatted : Android.Content.PM.PackageManager -> Java.Lang.ICharSequence

Parameters

Returns

Attributes

Remarks

Retrieve the label associated with this object. If the object does not have a label, null will be returned, in which case you will probably want to load the label from the underlying resolved info for the Intent.

Java documentation for android.content.pm.LabeledIntent.loadLabel(android.content.pm.PackageManager).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to