GetTopicsRequest.Builder


class GetTopicsRequest.Builder


Builder for GetTopicsRequest.

Summary

Public constructors

Public functions

GetTopicsRequest

Builds a GetTopicsRequest instance.

GetTopicsRequest.Builder
setAdsSdkName(adsSdkName: String)

Set Ads Sdk Name.

GetTopicsRequest.Builder
setShouldRecordObservation(shouldRecordObservation: Boolean)

Set the Record Observation.

Public constructors

Builder

Added in 1.0.0
Builder()

Public functions

build

Added in 1.0.0
fun build(): GetTopicsRequest

Builds a GetTopicsRequest instance.

setAdsSdkName

Added in 1.0.0
fun setAdsSdkName(adsSdkName: String): GetTopicsRequest.Builder

Set Ads Sdk Name.

This must be called by SDKs running outside of the Sandbox. Other clients must not call it.

Parameters
adsSdkName: String

the Ads Sdk Name.

setShouldRecordObservation

Added in 1.0.0
fun setShouldRecordObservation(shouldRecordObservation: Boolean): GetTopicsRequest.Builder

Set the Record Observation.

Parameters
shouldRecordObservation: Boolean

whether to record that the caller has observed the topics of the host app or not. This will be used to determine if the caller can receive the topic in the next epoch.