Language

Slice.Builder.AddRemoteInput(RemoteInput, String, IList<String>) Method

Definition

Add remote input to the slice being constructed

[Android.Runtime.Register("addRemoteInput", "(Landroid/app/RemoteInput;Ljava/lang/String;Ljava/util/List;)Landroid/app/slice/Slice$Builder;", "GetAddRemoteInput_Landroid_app_RemoteInput_Ljava_lang_String_Ljava_util_List_Handler", ApiSince=28)]
public virtual Android.App.Slices.Slice.Builder? AddRemoteInput(Android.App.RemoteInput? remoteInput, string? subType, System.Collections.Generic.IList<string>? hints);
[<Android.Runtime.Register("addRemoteInput", "(Landroid/app/RemoteInput;Ljava/lang/String;Ljava/util/List;)Landroid/app/slice/Slice$Builder;", "GetAddRemoteInput_Landroid_app_RemoteInput_Ljava_lang_String_Ljava_util_List_Handler", ApiSince=28)>]
abstract member AddRemoteInput : Android.App.RemoteInput * string * System.Collections.Generic.IList<string> -> Android.App.Slices.Slice.Builder
override this.AddRemoteInput : Android.App.RemoteInput * string * System.Collections.Generic.IList<string> -> Android.App.Slices.Slice.Builder

Parameters

remoteInput
RemoteInput

The remote input to store in the item. Must not be 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 remote input to the slice being constructed

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

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