Language

Slice.Builder.AddText Method

Definition

Overloads

Name Description
AddText(ICharSequence, String, IList<String>)

Add text to the slice being constructed

AddText(String, String, IList<String>)

Adds a string as a text item to the slice being constructed.

AddText(ICharSequence, String, IList<String>)

Add text to the slice being constructed

[Android.Runtime.Register("addText", "(Ljava/lang/CharSequence;Ljava/lang/String;Ljava/util/List;)Landroid/app/slice/Slice$Builder;", "GetAddText_Ljava_lang_CharSequence_Ljava_lang_String_Ljava_util_List_Handler", ApiSince=28)]
public virtual Android.App.Slices.Slice.Builder? AddText(Java.Lang.ICharSequence? text, string? subType, System.Collections.Generic.IList<string>? hints);
[<Android.Runtime.Register("addText", "(Ljava/lang/CharSequence;Ljava/lang/String;Ljava/util/List;)Landroid/app/slice/Slice$Builder;", "GetAddText_Ljava_lang_CharSequence_Ljava_lang_String_Ljava_util_List_Handler", ApiSince=28)>]
abstract member AddText : Java.Lang.ICharSequence * string * System.Collections.Generic.IList<string> -> Android.App.Slices.Slice.Builder
override this.AddText : Java.Lang.ICharSequence * string * System.Collections.Generic.IList<string> -> Android.App.Slices.Slice.Builder

Parameters

text
ICharSequence

The character sequence to store in the text item, or null.

subType
String

Optional template-specific type information. This value may be null. Value is one of the following: Slice.SUBTYPE_COLOR; Slice.SUBTYPE_CONTENT_DESCRIPTION; Slice.SUBTYPE_MAX; Slice.SUBTYPE_MESSAGE; Slice.SUBTYPE_PRIORITY; Slice.SUBTYPE_RANGE; Slice.SUBTYPE_SOURCE; Slice.SUBTYPE_TOGGLE; Slice.SUBTYPE_VALUE; Slice.SUBTYPE_LAYOUT_DIRECTION

hints
IList<String>

Value is one of the following: Slice.HINT_TITLE; Slice.HINT_LIST; Slice.HINT_LIST_ITEM; Slice.HINT_LARGE; Slice.HINT_ACTIONS; Slice.HINT_SELECTED; Slice.HINT_NO_TINT; Slice.HINT_SHORTCUT; Slice.HINT_HORIZONTAL; Slice.HINT_PARTIAL; Slice.HINT_SEE_MORE; Slice.HINT_KEYWORDS; Slice.HINT_ERROR; Slice.HINT_TTL; Slice.HINT_LAST_UPDATED; Slice.HINT_PERMISSION_REQUEST

Returns

This builder.

Attributes

Remarks

Add text to the slice being constructed

Android reference for android.app.slice.Slice.Builder.addText.

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

AddText(String, String, IList<String>)

Adds a string as a text item to the slice being constructed.

public Android.App.Slices.Slice.Builder? AddText(string? text, string? subType, System.Collections.Generic.IList<string>? hints);
member this.AddText : string * string * System.Collections.Generic.IList<string> -> Android.App.Slices.Slice.Builder

Parameters

text
String

The string to store in the text item, or null.

subType
String

Optional template-specific type information, or null if no subtype is needed.

hints
IList<String>

The hints for this text item. Use an empty list if no hints are needed; the list must not be null.

Returns

This builder.

Remarks

This .NET overload accepts a string for the Java character-sequence parameter. Use the overload that accepts ICharSequence to supply text with spans.

Android source for Slice.Builder.addText.

.NET binding generator for string overloads.

Applies to