Interaction.Builder


public final class Interaction.Builder


Builder class for Interaction.

Summary

Public constructors

Public methods

Interaction.Builder

Add an image/icon showing what the interaction is for.

Interaction.Builder

Add the images/icon showing what the interaction is for.

Interaction
Interaction.Builder

Sets the number of reaction.

Interaction.Builder

Sets the count value of the interaction.

Interaction.Builder

Indicate what the interaction is for. e.g. “Likes”

Public constructors

Builder

public Builder()

Public methods

addVisual

@CanIgnoreReturnValue
public Interaction.Builder addVisual(Image image)

Add an image/icon showing what the interaction is for.

Optional.

If not provided, label must be set.

addVisuals

@CanIgnoreReturnValue
public Interaction.Builder addVisuals(List<Image> images)

Add the images/icon showing what the interaction is for.

Optional.

build

public Interaction build()

setCount

@CanIgnoreReturnValue
public Interaction.Builder setCount(String count)

Sets the number of reaction.

Required.

setCountValue

@CanIgnoreReturnValue
public Interaction.Builder setCountValue(long countValue)

Sets the count value of the interaction.

Optional.

setLabel

@CanIgnoreReturnValue
public Interaction.Builder setLabel(String label)

Indicate what the interaction is for. e.g. “Likes”

Optional.

If not provided, visuals must be set.