Stay organized with collections
Save and categorize content based on your preferences.
JoinCustomAudienceRequest
open class JoinCustomAudienceRequest
The request object to join a custom audience.
Summary
Public methods
equals
open fun equals(other: Any?): Boolean
Checks whether two JoinCustomAudienceRequest
objects contain the same information.
Parameters |
obj |
the reference object with which to compare. |
Return |
Boolean |
true if this object is the same as the obj argument; false otherwise. |
getCustomAudience
open fun getCustomAudience(): CustomAudience
Returns the custom audience to join.
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# JoinCustomAudienceRequest\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\nJoinCustomAudienceRequest\n=========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/adservices/customaudience/JoinCustomAudienceRequest \"View this page in Java\") \n\n```\nopen class JoinCustomAudienceRequest\n```\n\n|---|------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.adservices.customaudience.JoinCustomAudienceRequest](#) |\n\nThe request object to join a custom audience.\n\nSummary\n-------\n\n| Nested classes ||\n|---|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/reference/kotlin/android/adservices/customaudience/JoinCustomAudienceRequest.Builder) Builder for [JoinCustomAudienceRequest](#) objects. |\n\n| Public methods ||\n|-------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [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)?`)` Checks whether two [JoinCustomAudienceRequest](#) objects contain the same information. |\n| open [CustomAudience](/reference/kotlin/android/adservices/customaudience/CustomAudience) | [getCustomAudience](#getCustomAudience())`()` Returns the custom audience to join. |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hashCode](#hashCode())`()` Returns the hash of the [JoinCustomAudienceRequest](#) object's data. |\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```\nopen fun equals(other: Any?): Boolean\n```\n\nChecks whether two [JoinCustomAudienceRequest](#) objects contain the same information.\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### getCustomAudience\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```\nopen fun getCustomAudience(): CustomAudience\n```\n\nReturns the custom audience to join.\n\n| Return ||\n|--------------------------------------------------------------------------------------|------------------------------|\n| [CustomAudience](/reference/kotlin/android/adservices/customaudience/CustomAudience) | 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```\nopen fun hashCode(): Int\n```\n\nReturns the hash of the [JoinCustomAudienceRequest](#) object's data.\n\n| Return ||\n|----------------------------------------------------------------------------|------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |"]]