Popularity.Builder


class Popularity.Builder


Builder class for Popularity.

Summary

Public constructors

Public functions

Popularity.Builder!

Add an image/icon representing the popularity label.

Popularity.Builder!

Add the images/icon representing the popularity label.

Popularity!
Popularity.Builder!

Sets the popularity count. e.g. “3.7 M”

Popularity.Builder!

Sets the count value of the popularity.

Popularity.Builder!

Sets the popularity label. e.g. “Likes”

Public constructors

Builder

Builder()

Public functions

addVisual

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

Add an image/icon representing the popularity label.

Optional.

If not provided, label must be set.

addVisuals

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

Add the images/icon representing the popularity label.

Optional.

build

fun build(): Popularity!

setCount

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

Sets the popularity count. e.g. “3.7 M”

Required.

setCountValue

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

Sets the count value of the popularity.

Optional.

setLabel

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

Sets the popularity label. e.g. “Likes”

Optional.

If not provided, visuals must be set.