Interaction.Builder


class Interaction.Builder


Builder class for Interaction.

Summary

Public constructors

Public functions

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

Builder()

Public functions

addVisual

@CanIgnoreReturnValue
fun addVisual(image: Image!): Interaction.Builder!

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

Optional.

If not provided, label must be set.

addVisuals

@CanIgnoreReturnValue
fun addVisuals(images: (Mutable)List<Image!>!): Interaction.Builder!

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

Optional.

build

fun build(): Interaction!

setCount

@CanIgnoreReturnValue
fun setCount(count: String!): Interaction.Builder!

Sets the number of reaction.

Required.

setCountValue

@CanIgnoreReturnValue
fun setCountValue(countValue: Long): Interaction.Builder!

Sets the count value of the interaction.

Optional.

setLabel

@CanIgnoreReturnValue
fun setLabel(label: String!): Interaction.Builder!

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

Optional.

If not provided, visuals must be set.