GetTopicsRequest.Builder


public final class GetTopicsRequest.Builder


Builder for GetTopicsRequest.

Summary

Public constructors

Public methods

final @NonNull GetTopicsRequest

Builds a GetTopicsRequest instance.

final @NonNull GetTopicsRequest.Builder

Set Ads Sdk Name.

final @NonNull GetTopicsRequest.Builder
setShouldRecordObservation(boolean shouldRecordObservation)

Set the Record Observation.

Public constructors

Builder

Added in 1.0.0
public Builder()

Public methods

build

Added in 1.0.0
public final @NonNull GetTopicsRequest build()

Builds a GetTopicsRequest instance.

setAdsSdkName

Added in 1.0.0
public final @NonNull GetTopicsRequest.Builder setAdsSdkName(@NonNull String adsSdkName)

Set Ads Sdk Name.

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

Parameters
@NonNull String adsSdkName

the Ads Sdk Name.

setShouldRecordObservation

Added in 1.0.0
public final @NonNull GetTopicsRequest.Builder setShouldRecordObservation(boolean shouldRecordObservation)

Set the Record Observation.

Parameters
boolean shouldRecordObservation

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.