LeaveCustomAudienceRequest

class LeaveCustomAudienceRequest
kotlin.Any
   ↳ android.adservices.customaudience.LeaveCustomAudienceRequest

The request object is used to leave a custom audience.

Summary

Nested classes

Builder for LeaveCustomAudienceRequest objects.

Public methods
Boolean
equals(other: Any?)

Checks whether two LeaveCustomAudienceRequest objects contain the same information.

AdTechIdentifier

Gets the buyer's AdTechIdentifier, as identified by a domain in the form "buyerexample.

String

Gets the arbitrary string provided by the owner and buyer on creation of the CustomAudience object that represents a single custom audience.

Int

Returns the hash of the LeaveCustomAudienceRequest object's data.

Public methods

equals

Added in API level 34
fun equals(other: Any?): Boolean

Checks whether two LeaveCustomAudienceRequest 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.

getBuyer

fun getBuyer(): AdTechIdentifier

Gets the buyer's AdTechIdentifier, as identified by a domain in the form "buyerexample.com".

Return
AdTechIdentifier an AdTechIdentifier containing the custom audience's buyer's domain This value cannot be null.

getName

fun getName(): String

Gets the arbitrary string provided by the owner and buyer on creation of the CustomAudience object that represents a single custom audience.

Return
String the String name of the custom audience This value cannot be null.

hashCode

Added in API level 34
fun hashCode(): Int

Returns the hash of the LeaveCustomAudienceRequest object's data.

Return
Int a hash code value for this object.