FoodShoppingList.Builder


class FoodShoppingList.Builder


Builder class for FoodShoppingList.

Summary

Public constructors

Public functions

FoodShoppingList.Builder!

Add a item label in the shopping list cluster

FoodShoppingList.Builder!

Add a list of item labels in the shopping list cluster

FoodShoppingList.Builder!

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

FoodShoppingList.Builder!

Adds poster images of the items in the shopping list.

FoodShoppingList!
FoodShoppingList.Builder!

Sets the action link uri for the shopping list.

FoodShoppingList.Builder!

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

FoodShoppingList.Builder!

Sets the number of items in the shopping list.

FoodShoppingList.Builder!

Sets the title of the shopping list.

Public constructors

Builder

Builder()

Public functions

addItemLabel

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

Add a item label in the shopping list cluster

Optional.

addItemLabels

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

Add a list of item labels in the shopping list cluster

Optional.

addPosterImage

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

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

Optional.

addPosterImages

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

Adds poster images of the items in the shopping list.

Optional.

build

fun build(): FoodShoppingList!

setActionLinkUri

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

Sets the action link uri for the shopping list.

Required.

setActionText

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

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

Optional.

setNumberOfItems

@CanIgnoreReturnValue
fun setNumberOfItems(numberOfItems: Int): FoodShoppingList.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!): FoodShoppingList.Builder!

Sets the title of the shopping list.

Optional.