TopicsManagerFutures


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 companion functions

TopicsManagerFutures?
from(context: Context)

Creates TopicsManagerFutures.

Public functions

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

Returns the topics.

Public companion functions

from

Added in 1.0.0
fun from(context: Context): TopicsManagerFutures?

Creates TopicsManagerFutures.

Returns
TopicsManagerFutures?

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

Public functions

getTopicsAsync

Added in 1.0.0
@RequiresPermission(value = "android.permission.ACCESS_ADSERVICES_TOPICS")
abstract fun getTopicsAsync(request: GetTopicsRequest): ListenableFuture<GetTopicsResponse>

Returns the topics.

Parameters
request: GetTopicsRequest

The GetTopicsRequest for obtaining Topics.

Returns
ListenableFuture<GetTopicsResponse>

ListenableFuture to get the Topics response.