Język

ShortcutInfo.Builder.SetShortLabel Method

Definition

Overloads

Name Description
SetShortLabel(ICharSequence)

Sets the short title of a shortcut.

SetShortLabel(String)

Sets the shortcut's short label from a 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

The nonempty short title used to describe the shortcut.

Returns

This builder after the short label is assigned.

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)

Sets the shortcut's short label from a string.

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

Parameters

shortLabel
String

The nonempty short title as a string.

Returns

This builder after the short label is assigned.

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