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>)

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

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

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>)

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
subType
String
hints
IList<String>

Returns

Applies to