Stay organized with collections
Save and categorize content based on your preferences.
GetTopicsResponse
class GetTopicsResponse
Represent the result from the getTopics API.
Summary
Public methods
equals
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. |
hashCode
fun hashCode(): Int
Return |
Int |
a hash code value for this object. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# GetTopicsResponse\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions)\n\nGetTopicsResponse\n=================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/adservices/topics/GetTopicsResponse \"View this page in Java\") \n\n```\nclass GetTopicsResponse\n```\n\n|---|--------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.adservices.topics.GetTopicsResponse](#) |\n\nRepresent the result from the getTopics API.\n\nSummary\n-------\n\n| Nested classes ||\n|---|------------------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/reference/kotlin/android/adservices/topics/GetTopicsResponse.Builder) Builder for [GetTopicsResponse](#) objects. |\n\n| Public methods ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` \u003cbr /\u003e |\n| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[EncryptedTopic](/reference/kotlin/android/adservices/topics/EncryptedTopic)!\\\u003e | [getEncryptedTopics](#getEncryptedTopics())`()` Returns a [List](../../../java/util/List.html#) of [EncryptedTopic](/reference/kotlin/android/adservices/topics/EncryptedTopic) objects returned by getTopics API. |\n| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[Topic](/reference/kotlin/android/adservices/topics/Topic)!\\\u003e | [getTopics](#getTopics())`()` Returns a [List](../../../java/util/List.html#) of [Topic](/reference/kotlin/android/adservices/topics/Topic) objects returned by getTopics API. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hashCode](#hashCode())`()` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### equals\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun equals(other: Any?): Boolean\n```\n\n| Parameters ||\n|-------|---------------------------------------------|\n| `obj` | the reference object with which to compare. |\n\n| Return ||\n|------------------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true` if this object is the same as the obj argument; `false` otherwise. |\n\n### getEncryptedTopics\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 11](https://developer.android.com/sdkExtensions) \n\n```\nfun getEncryptedTopics(): MutableList\u003cEncryptedTopic!\u003e\n```\n\nReturns a [List](../../../java/util/List.html#) of [EncryptedTopic](/reference/kotlin/android/adservices/topics/EncryptedTopic) objects returned by getTopics API.\n\n| Return ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------|\n| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[EncryptedTopic](/reference/kotlin/android/adservices/topics/EncryptedTopic)!\u003e | This value cannot be `null`. |\n\n### getTopics\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions) \n\n```\nfun getTopics(): MutableList\u003cTopic!\u003e\n```\n\nReturns a [List](../../../java/util/List.html#) of [Topic](/reference/kotlin/android/adservices/topics/Topic) objects returned by getTopics API.\n\n| Return ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------|\n| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[Topic](/reference/kotlin/android/adservices/topics/Topic)!\u003e | This value cannot be `null`. |\n\n### hashCode\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun hashCode(): Int\n```\n\n| Return ||\n|----------------------------------------------------------------------------|------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |"]]