RecommendationCluster.Builder


class RecommendationCluster.Builder


Builder class for RecommendationCluster.

Summary

Public constructors

Public functions

RecommendationCluster.Builder!

Adds display time windows for the recommendation cluster.

RecommendationCluster.Builder!

Adds a display time window for the recommendation cluster.

RecommendationCluster.Builder!

Add an Entity.

RecommendationCluster!
RecommendationCluster.Builder!

Set the action text associated with the RecommendationCluster.

RecommendationCluster.Builder!

Set the Uri to which user is navigated to on clicking the action text of the .

RecommendationCluster.Builder!

Set the subtitle of the RecommendationCluster.

RecommendationCluster.Builder!

Set the title of the RecommendationCluster.

Public constructors

Builder

Builder()

Public functions

addAllDisplayTimeWindow

@CanIgnoreReturnValue
fun addAllDisplayTimeWindow(
    displayTimeWindows: (Mutable)List<DisplayTimeWindow!>!
): RecommendationCluster.Builder!

Adds display time windows for the recommendation cluster.

Optional.

addDisplayTimeWindow

@CanIgnoreReturnValue
fun addDisplayTimeWindow(displayTimeWindow: DisplayTimeWindow!): RecommendationCluster.Builder!

Adds a display time window for the recommendation cluster.

Optional.

addEntity

@CanIgnoreReturnValue
fun addEntity(entity: Entity!): RecommendationCluster.Builder!

Add an Entity.

Required.

build

fun build(): RecommendationCluster!

setActionText

@CanIgnoreReturnValue
fun setActionText(actionText: String!): RecommendationCluster.Builder!

Set the action text associated with the RecommendationCluster.

Optional.

setActionUri

@CanIgnoreReturnValue
fun setActionUri(actionUri: Uri!): RecommendationCluster.Builder!

Set the Uri to which user is navigated to on clicking the action text of the .

Optional.

setSubtitle

@CanIgnoreReturnValue
fun setSubtitle(subtitle: String!): RecommendationCluster.Builder!

Set the subtitle of the RecommendationCluster.

Optional.

setTitle

@CanIgnoreReturnValue
fun setTitle(title: String!): RecommendationCluster.Builder!

Set the title of the RecommendationCluster.

Required.