ShoppingList.Builder


class ShoppingList.Builder


Builder class for ShoppingList.

Summary

Public constructors

Public functions

ShoppingList.Builder!

Add a item label in the shopping list

ShoppingList.Builder!

Add a list of item labels in the shopping list

ShoppingList.Builder!

Adds a poster image of the items in the shopping list.

ShoppingList.Builder!

Adds poster images of the items in the shopping list.

ShoppingList!
ShoppingList.Builder!

Sets the action link uri for the shopping list.

ShoppingList.Builder!

Sets the action text of the shopping cart. e.g. "View List"

ShoppingList.Builder!

Sets the number of items in the shopping list.

ShoppingList.Builder!

Sets the title of the shopping list.

Public constructors

Builder

Builder()

Public functions

addItemLabel

@CanIgnoreReturnValue
fun addItemLabel(itemLabel: String!): ShoppingList.Builder!

Add a item label in the shopping list

Optional.

addItemLabels

@CanIgnoreReturnValue
fun addItemLabels(itemLabels: (Mutable)List<String!>!): ShoppingList.Builder!

Add a list of item labels in the shopping list

Optional.

addPosterImage

@CanIgnoreReturnValue
fun addPosterImage(image: Image!): ShoppingList.Builder!

Adds a poster image of the items in the shopping list.

Optional.

addPosterImages

@CanIgnoreReturnValue
fun addPosterImages(images: (Mutable)List<Image!>!): ShoppingList.Builder!

Adds poster images of the items in the shopping list.

Optional.

build

fun build(): ShoppingList!

setActionLinkUri

@CanIgnoreReturnValue
fun setActionLinkUri(actionLinkUri: Uri!): ShoppingList.Builder!

Sets the action link uri for the shopping list.

Required.

setActionText

@CanIgnoreReturnValue
fun setActionText(actionText: String!): ShoppingList.Builder!

Sets the action text of the shopping cart. e.g. "View List"

Optional.

setNumberOfItems

@CanIgnoreReturnValue
fun setNumberOfItems(numberOfItems: Int): ShoppingList.Builder!

Sets the number of items in the shopping list.

When set to 0, the list is empty.

Optional.

setTitle

@CanIgnoreReturnValue
fun setTitle(title: String!): ShoppingList.Builder!

Sets the title of the shopping list.

Optional.