public static final class

LocalizableRemoteInput.Builder

extends Object
java.lang.Object
   ↳ com.urbanairship.push.notifications.LocalizableRemoteInput.Builder

Class Overview

Builds the LocalizableRemoteInput.

Summary

Public Constructors
Builder(String resultKey)
Set the result key value.
Public Methods
LocalizableRemoteInput.Builder addExtras(Bundle extras)
Set the extras value.
LocalizableRemoteInput build()
Builds and returns a LocalizableRemoteInput.
LocalizableRemoteInput.Builder setAllowFreeFormInput(boolean allowFreeFormInput)
Set the allowFreeFormInput value.
LocalizableRemoteInput.Builder setChoices(int choices)
Set the choices value.
LocalizableRemoteInput.Builder setLabel(int labelId)
Set the label ID value.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder (String resultKey)

Set the result key value.

Parameters
resultKey A string value.

Public Methods

public LocalizableRemoteInput.Builder addExtras (Bundle extras)

Set the extras value.

Parameters
extras A bundle value.
Returns
  • The builder with the extras set.

public LocalizableRemoteInput build ()

Builds and returns a LocalizableRemoteInput.

Returns
  • The LocalizableRemoteInput.

public LocalizableRemoteInput.Builder setAllowFreeFormInput (boolean allowFreeFormInput)

Set the allowFreeFormInput value.

Parameters
allowFreeFormInput A boolean value.
Returns
  • The builder with the allowFreeFormInput set.

public LocalizableRemoteInput.Builder setChoices (int choices)

Set the choices value.

Parameters
choices An int array.
Returns
  • The builder with the choices set.

public LocalizableRemoteInput.Builder setLabel (int labelId)

Set the label ID value.

Parameters
labelId An int value.
Returns
  • The builder with the label ID set.