TopicsManagerFutures


public abstract class TopicsManagerFutures


This provides APIs for App and Ad-Sdks to get the user interest topics in a privacy preserving way. This class can be used by Java clients.

Summary

Public methods

static final TopicsManagerFutures
from(@NonNull Context context)

Creates TopicsManagerFutures.

abstract @NonNull ListenableFuture<@NonNull GetTopicsResponse>
@RequiresPermission(value = "android.permission.ACCESS_ADSERVICES_TOPICS")
getTopicsAsync(@NonNull GetTopicsRequest request)

Returns the topics.

Public methods

from

Added in 1.0.0
public static final TopicsManagerFutures from(@NonNull Context context)

Creates TopicsManagerFutures.

Returns
TopicsManagerFutures

TopicsManagerFutures object. If the device is running an incompatible build, the value returned is null.

getTopicsAsync

Added in 1.0.0
@RequiresPermission(value = "android.permission.ACCESS_ADSERVICES_TOPICS")
public abstract @NonNull ListenableFuture<@NonNull GetTopicsResponsegetTopicsAsync(@NonNull GetTopicsRequest request)

Returns the topics.

Parameters
@NonNull GetTopicsRequest request

The GetTopicsRequest for obtaining Topics.

Returns
@NonNull ListenableFuture<@NonNull GetTopicsResponse>

ListenableFuture to get the Topics response.