FoodShoppingList.Builder


public final class FoodShoppingList.Builder


Builder class for FoodShoppingList.

Summary

Public constructors

Public methods

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

public Builder()

Public methods

addItemLabel

@CanIgnoreReturnValue
public FoodShoppingList.Builder addItemLabel(String itemLabel)

Add a item label in the shopping list cluster

Optional.

addItemLabels

@CanIgnoreReturnValue
public FoodShoppingList.Builder addItemLabels(List<String> itemLabels)

Add a list of item labels in the shopping list cluster

Optional.

addPosterImage

@CanIgnoreReturnValue
public FoodShoppingList.Builder addPosterImage(Image image)

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

Optional.

addPosterImages

@CanIgnoreReturnValue
public FoodShoppingList.Builder addPosterImages(List<Image> images)

Adds poster images of the items in the shopping list.

Optional.

build

public FoodShoppingList build()

setActionLinkUri

@CanIgnoreReturnValue
public FoodShoppingList.Builder setActionLinkUri(Uri actionLinkUri)

Sets the action link uri for the shopping list.

Required.

setActionText

@CanIgnoreReturnValue
public FoodShoppingList.Builder setActionText(String actionText)

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

Optional.

setNumberOfItems

@CanIgnoreReturnValue
public FoodShoppingList.Builder setNumberOfItems(int numberOfItems)

Sets the number of items in the shopping list.

When set to 0, the list is empty.

Optional.

setTitle

@CanIgnoreReturnValue
public FoodShoppingList.Builder setTitle(String title)

Sets the title of the shopping list.

Optional.