PromptVerticalListContentView.Builder


class PromptVerticalListContentView.Builder


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

Summary

Public constructors

Public functions

PromptVerticalListContentView.Builder

Optional: Adds a list item in the current row.

PromptVerticalListContentView.Builder
addListItem(listItem: PromptContentItem, index: Int)

Optional: Adds a list item in the current row.

PromptVerticalListContentView

Creates a PromptVerticalListContentView.

PromptVerticalListContentView.Builder
setDescription(description: String)

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

Public constructors

Builder

Added in 1.4.0-alpha01
Builder()

Public functions

addListItem

Added in 1.4.0-alpha01
fun addListItem(listItem: PromptContentItem): PromptVerticalListContentView.Builder

Optional: Adds a list item in the current row.

Parameters
listItem: PromptContentItem

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
fun addListItem(listItem: PromptContentItem, index: Int): PromptVerticalListContentView.Builder

Optional: Adds a list item in the current row.

Parameters
listItem: PromptContentItem

The list item view to display

index: Int

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
fun setDescription(description: String): PromptVerticalListContentView.Builder

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

Parameters
description: String

The description to display.

Throws
java.lang.IllegalArgumentException

If description exceeds certain character limit.