ShoppingList.Builder


public final class ShoppingList.Builder


Builder class for ShoppingList.

Summary

Public constructors

Public methods

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

public Builder()

Public methods

addItemLabel

@CanIgnoreReturnValue
public ShoppingList.Builder addItemLabel(String itemLabel)

Add a item label in the shopping list

Optional.

addItemLabels

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

Add a list of item labels in the shopping list

Optional.

addPosterImage

@CanIgnoreReturnValue
public ShoppingList.Builder addPosterImage(Image image)

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

Optional.

addPosterImages

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

Adds poster images of the items in the shopping list.

Optional.

build

public ShoppingList build()

setActionLinkUri

@CanIgnoreReturnValue
public ShoppingList.Builder setActionLinkUri(Uri actionLinkUri)

Sets the action link uri for the shopping list.

Required.

setActionText

@CanIgnoreReturnValue
public ShoppingList.Builder setActionText(String actionText)

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

Optional.

setNumberOfItems

@CanIgnoreReturnValue
public ShoppingList.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 ShoppingList.Builder setTitle(String title)

Sets the title of the shopping list.

Optional.