RemoteInput.Builder

public final class RemoteInput.Builder


Builder class for androidx.core.app.RemoteInput objects.

Summary

Public constructors

Builder(@NonNull String resultKey)

Create a builder object for androidx.core.app.RemoteInput objects.

Public methods

@NonNull RemoteInput.Builder

Merge additional metadata into this builder.

@NonNull RemoteInput

Combine all of the options that have been set and return a new object.

@NonNull Bundle

Get the metadata Bundle used by this Builder.

@NonNull RemoteInput.Builder
setAllowDataType(@NonNull String mimeType, boolean doAllow)

Specifies whether the user can provide arbitrary values.

@NonNull RemoteInput.Builder
setAllowFreeFormInput(boolean allowFreeFormTextInput)

Specifies whether the user can provide arbitrary text values.

@NonNull RemoteInput.Builder
setChoices(CharSequence[] choices)

Specifies choices available to the user to satisfy this input.

@NonNull RemoteInput.Builder

Specifies whether tapping on a choice should let the user edit the input before it is sent to the app.

@NonNull RemoteInput.Builder

Set a label to be displayed to the user when collecting this input.

Public constructors

Builder

public Builder(@NonNull String resultKey)

Create a builder object for androidx.core.app.RemoteInput objects.

Parameters
@NonNull String resultKey

the Bundle key that refers to this input when collected from the user

Public methods

addExtras

public @NonNull