Language

ShortcutInfo.Builder.SetShortLabel Method

Definition

Overloads

Name Description
SetShortLabel(ICharSequence)

Sets the short title of a shortcut.

SetShortLabel(String)

SetShortLabel(ICharSequence)

Sets the short title of a shortcut.

[Android.Runtime.Register("setShortLabel", "(Ljava/lang/CharSequence;)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetShortLabel_Ljava_lang_CharSequence_Handler", ApiSince=25)]
public virtual Android.Content.PM.ShortcutInfo.Builder SetShortLabel(Java.Lang.ICharSequence shortLabel);
[<Android.Runtime.Register("setShortLabel", "(Ljava/lang/CharSequence;)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetShortLabel_Ljava_lang_CharSequence_Handler", ApiSince=25)>]
abstract member SetShortLabel : Java.Lang.ICharSequence -> Android.Content.PM.ShortcutInfo.Builder
override this.SetShortLabel : Java.Lang.ICharSequence -> Android.Content.PM.ShortcutInfo.Builder

Parameters

shortLabel
ICharSequence

Returns

Attributes

Remarks

Sets the short title of a shortcut. This is a mandatory field when publishing a new shortcut with ShortcutManager.addDynamicShortcuts(List) or ShortcutManager.setDynamicShortcuts(List). This field is intended to be a concise description of a shortcut. The recommended maximum length is 10 characters.

Android reference for android.content.pm.ShortcutInfo.Builder.setShortLabel.

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

SetShortLabel(String)

public Android.Content.PM.ShortcutInfo.Builder SetShortLabel(string shortLabel);
member this.SetShortLabel : string -> Android.Content.PM.ShortcutInfo.Builder

Parameters

shortLabel
String

Returns

Remarks

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