TopicsManager

public class TopicsManager
extends Object

java.lang.Object
   ↳ android.adservices.topics.TopicsManager


Topics Manager.

Summary

Constants

int RESULT_INTERNAL_ERROR

An internal error occurred within Topics API, which the caller cannot address.

int RESULT_INVALID_ARGUMENT

The caller supplied invalid arguments to the call.

int RESULT_IO_ERROR

An issue occurred reading or writing to storage.

int RESULT_OK

The call was successful.

int RESULT_RATE_LIMIT_REACHED

The caller has reached the API call limit.

String TOPICS_SERVICE

Public methods

void getTopics(GetTopicsRequest getTopicsRequest, Executor executor, OutcomeReceiver<GetTopicsResponseGetTopicsException> callback)

Return the topics.

Inherited methods

Constants

RESULT_INTERNAL_ERROR

public static final int RESULT_INTERNAL_ERROR

An internal error occurred within Topics API, which the caller cannot address.

This error may be considered similar to IllegalStateException

Constant Value: 1 (0x00000001)

RESULT_INVALID_ARGUMENT

public static final int RESULT_INVALID_ARGUMENT

The caller supplied invalid arguments to the call.

This error may be considered similar to IllegalArgumentException.

Constant Value: 2 (0x00000002)

RESULT_IO_ERROR

public static final int RESULT_IO_ERROR

An issue occurred reading or writing to storage. The call might succeed if repeated.

This error may be considered similar to IOException.

Constant Value: 3 (0x00000003)

RESULT_OK

public static final int RESULT_OK

The call was successful.

Constant Value: 0 (0x00000000)

RESULT_RATE_LIMIT_REACHED

public static final int RESULT_RATE_LIMIT_REACHED

The caller has reached the API call limit.

The caller should back off and try later.

Constant Value: 4 (0x00000004)

TOPICS_SERVICE

public static final String TOPICS_SERVICE

Constant Value: "topics_service"

Public methods

getTopics

public void getTopics (GetTopicsRequest getTopicsRequest, 
                Executor executor, 
                OutcomeReceiver<GetTopicsResponseGetTopicsException> callback)

Return the topics.

Parameters
getTopicsRequest GetTopicsRequest: This value cannot be null.

executor Executor: This value cannot be null.
callback OutcomeReceiver: This value cannot be null.

Returns
void This value cannot be null.