Topic
public final class Topic
Represent the topic result from the getTopics API.
Summary
Public constructors |
|---|
Topic(long taxonomyVersion, long modelVersion, int topicId) |
Public methods |
|
|---|---|
boolean |
|
final long |
the version of the model. |
final long |
the version of the taxonomy. |
final int |
the unique id of a topic. |
int |
hashCode() |
@NonNull String |
toString() |
Public constructors
Topic
Added in 1.0.0
public Topic(long taxonomyVersion, long modelVersion, int topicId)
| Parameters | |
|---|---|
long taxonomyVersion |
the version of the taxonomy. |
long modelVersion |
the version of the model. |
int topicId |
the unique id of a topic. See https://developer.android.com/design-for-safety/privacy-sandbox/guides/topics for details. |
Public methods
getTaxonomyVersion
Added in 1.0.0
public final long getTaxonomyVersion()
the version of the taxonomy.
getTopicId
Added in 1.0.0
public final int getTopicId()
the unique id of a topic. See https://developer.android.com/design-for-safety/privacy-sandbox/guides/topics for details.