PromptVerticalListContentView.Builder


public final class PromptVerticalListContentView.Builder


A builder used to set individual options for the PromptVerticalListContentView class.

Summary

Public constructors

Public methods

@NonNull PromptVerticalListContentView.Builder

Optional: Adds a list item in the current row.

@NonNull PromptVerticalListContentView.Builder
addListItem(@NonNull PromptContentItem listItem, int index)

Optional: Adds a list item in the current row.

@NonNull PromptVerticalListContentView

Creates a PromptVerticalListContentView.

@NonNull PromptVerticalListContentView.Builder

Optional: Sets a description that will be shown on the content view.

Public constructors

Builder

Added in 1.4.0-alpha01
public Builder()

Public methods

addListItem

Added in 1.4.0-alpha01
public @NonNull PromptVerticalListContentView.Builder addListItem(@NonNull PromptContentItem listItem)

Optional: Adds a list item in the current row.

Parameters
@NonNull PromptContentItem listItem

The list item view to display

Throws
java.lang.IllegalArgumentException

If this list item exceeds certain character limits or the number of list items exceeds certain limit.

addListItem

Added in 1.4.0-alpha01
public @NonNull PromptVerticalListContentView.Builder addListItem(@NonNull PromptContentItem listItem, int index)

Optional: Adds a list item in the current row.

Parameters
@NonNull PromptContentItem listItem

The list item view to display

int index

The position at which to add the item

Throws
java.lang.IllegalArgumentException

If this list item exceeds certain character limits or the number of list items exceeds certain limit.

setDescription

Added in 1.4.0-alpha01
public @NonNull PromptVerticalListContentView.Builder setDescription(@NonNull String description)

Optional: Sets a description that will be shown on the content view.

Parameters
@NonNull String description

The description to display.

Throws
java.lang.IllegalArgumentException

If description exceeds certain character limit.