Język

ShortcutInfo.Builder.SetLongLabel Method

Definition

Overloads

Name Description
SetLongLabel(ICharSequence)

Sets the text of a shortcut.

SetLongLabel(String)

Sets the shortcut's long label from a string.

SetLongLabel(ICharSequence)

Sets the text of a shortcut.

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

Parameters

longLabel
ICharSequence

The nonempty, more detailed label shown when the launcher has enough space.

Returns

This builder after the long label is assigned.

Attributes

Remarks

Sets the text of a shortcut. This field is intended to be more descriptive than the shortcut title. The launcher shows this instead of the short title when it has enough space. The recommend maximum length is 25 characters.

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

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

SetLongLabel(String)

Sets the shortcut's long label from a string.

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

Parameters

longLabel
String

The nonempty long label as a string.

Returns

This builder after the long 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