class Topic


Represent the topic result from the getTopics API.

Summary

Public constructors

Topic(taxonomyVersion: Long, modelVersion: Long, topicId: Int)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Long

the version of the model.

Long

the version of the taxonomy.

Int

the unique id of a topic.

Public constructors

Topic

Added in 1.0.0
Topic(taxonomyVersion: Long, modelVersion: Long, topicId: Int)
Parameters
taxonomyVersion: Long

the version of the taxonomy.

modelVersion: Long

the version of the model.

topicId: Int

the unique id of a topic. See https://developer.android.com/design-for-safety/privacy-sandbox/guides/topics for details.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

modelVersion

Added in 1.0.0
val modelVersion: Long

the version of the model.

taxonomyVersion

Added in 1.0.0
val taxonomyVersion: Long

the version of the taxonomy.

topicId

Added in 1.0.0
val topicId: Int

the unique id of a topic. See https://developer.android.com/design-for-safety/privacy-sandbox/guides/topics for details.