public static class

RemoteInput.Builder

extends Object
java.lang.Object
   ↳ android.preview.support.wearable.notifications.RemoteInput.Builder

Class Overview

Builder class for RemoteInput objects.

Summary

Public Constructors
RemoteInput.Builder(String returnKey)
Create a builder object for RemoteInput objects.
Public Methods
RemoteInput build()
Combine all of the options that have been set and return a new RemoteInput object.
RemoteInput.Builder setAllowFreeFormInput(boolean allowFreeFormInput)
Specifies whether the user can provide arbitrary values.
RemoteInput.Builder setChoices(String[] choices)
Specifies choices available to the user to satisfy this input.
RemoteInput.Builder setLabel(String label)
Set a label to be displayed to the user when collecting this input.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RemoteInput.Builder (String returnKey)

Create a builder object for RemoteInput objects.

Parameters
returnKey the extras key to be set with input collected from the user when the intent is sent.

Public Methods

public RemoteInput build ()

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

public RemoteInput.Builder setAllowFreeFormInput (boolean allowFreeFormInput)

Specifies whether the user can provide arbitrary values. The default is true. If this is set to false, a non-null non-empty value should be passed to setChoices(String[]).

public RemoteInput.Builder setChoices (String[] choices)

Specifies choices available to the user to satisfy this input.

public RemoteInput.Builder setLabel (String label)

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