Topic
class Topic
kotlin.Any | |
↳ | android.adservices.topics.Topic |
Represent the topic result from the getTopics API.
Summary
Public constructors | |
---|---|
Creates an object which represents the result from the getTopics API. |
Public methods | |
---|---|
Boolean | |
Long |
Get the ModelVersion. |
Long |
Get the TaxonomyVersion. |
Int |
Get the Topic ID. |
Int |
hashCode() |
String |
toString() |
Public constructors
Topic
Topic(
mTaxonomyVersion: Long,
mModelVersion: Long,
mTopicId: Int)
Creates an object which represents the result from the getTopics API.
Parameters | |
---|---|
mTaxonomyVersion |
Long: a long representing the version of the taxonomy. |
mModelVersion |
Long: a long representing the version of the model. |
mTopicId |
Int: an integer representing the unique id of a topic. |
Public methods
equals
Added in API level 34
fun equals(other: Any?): Boolean
Parameters | |
---|---|
obj |
the reference object with which to compare. |
Return | |
---|---|
Boolean |
true if this object is the same as the obj argument; false otherwise. |
toString
Added in API level 34
fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |