GetTopicsRequest.Builder

public static final class GetTopicsRequest.Builder
extends Object

java.lang.Object
   ↳ android.adservices.topics.GetTopicsRequest.Builder


Builder for GetTopicsRequest objects.

Summary

Public constructors

Builder()

Public methods

GetTopicsRequest build()

Builds a GetTopicsRequest instance.

GetTopicsRequest.Builder setSdkName(String sdkName)

Set the Sdk Name.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public GetTopicsRequest build ()

Builds a GetTopicsRequest instance.

Returns
GetTopicsRequest This value cannot be null.

setSdkName

public GetTopicsRequest.Builder setSdkName (String sdkName)

Set the Sdk Name. When the app calls the Topics API directly without using a SDK, don't set this field.

Currently we allow callers to specify the SdkName. In the future releases we will probably have a way to get the SdkName internally.

Parameters
sdkName String: This value cannot be null.

Returns
GetTopicsRequest.Builder This value cannot be null.