Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  
Summary:[Nested Classes](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#nestedclasses)\|[Inherited Constants](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#inhconstants)\|[Fields](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#lfields)\|[Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#pubmethods)\|[Inherited Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#inhmethods)  

# CustomAudience

`
public

final

class
CustomAudience
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


implements

`[Parcelable](https://developer.android.com/reference/android/os/Parcelable)`


`

|---|--------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.adservices.customaudience.CustomAudience |

<br />

*** ** * ** ***

Represents the information necessary for a custom audience to participate in ad selection.

A custom audience is an abstract grouping of users with similar demonstrated interests. This class is a collection of some data stored on a device that is necessary to serve advertisements targeting a single custom audience.

## Summary

|                                                                                                                                                   ### Nested classes                                                                                                                                                   ||
|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [CustomAudience.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience.Builder) Builder for[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)objects. |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| |
| From interface[android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable) |-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `int` | [CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR) Descriptor bit used with[describeContents()](https://developer.android.com/reference/android/os/Parcelable#describeContents()): indicates that the Parcelable object's flattened representation includes a file descriptor.                                                                                                                                            | | `int` | [PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE) Flag for use with[writeToParcel(Parcel, int)](https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)): the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". | |

|                                                                                                                                                                                           ### Fields                                                                                                                                                                                            ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final `[Creator](https://developer.android.com/reference/android/os/Parcelable.Creator)`<`[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)`>` | [CREATOR](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#CREATOR) <br /> |

|                                                                                                                                                                                                                                                                                                                                            ### Public methods                                                                                                                                                                                                                                                                                                                                             ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` boolean`                                                                                                                                                                          | ` `[equals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` o) ` Checks whether two[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)objects contain the same information.                                                                                      |
| ` `[Instant](https://developer.android.com/reference/java/time/Instant)                                                                                                             | ` `[getActivationTime](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#getActivationTime())`() ` On creation of the[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)object, an optional activation time may be set in the future, in order to serve a delayed activation.                                                                                      |
| ` `[List](https://developer.android.com/reference/java/util/List)`<`[AdData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdData)`>` | ` `[getAds](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#getAds())`() ` This list of[AdData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdData)objects is a full and complete list of the ads that will be served by this[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)during the ad selection process. |
| ` `[Uri](https://developer.android.com/reference/android/net/Uri)                                                                                                                   | ` `[getBiddingLogicUri](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#getBiddingLogicUri())`() ` Returns the target URI used to fetch bidding logic when a custom audience participates in the ad selection process.                                                                                                                                                                                                                            |
| ` `[AdTechIdentifier](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdTechIdentifier)                                                 | ` `[getBuyer](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#getBuyer())`() ` A buyer is identified by a domain in the form "buyerexample.com".                                                                                                                                                                                                                                                                                                  |
| ` `[Uri](https://developer.android.com/reference/android/net/Uri)                                                                                                                   | ` `[getDailyUpdateUri](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#getDailyUpdateUri())`() ` This URI points to a buyer-operated server that hosts updated bidding data and ads metadata to be used in the on-device ad selection process.                                                                                                                                                                                                    |
| ` `[Instant](https://developer.android.com/reference/java/time/Instant)                                                                                                             | ` `[getExpirationTime](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#getExpirationTime())`() ` Once the expiration time has passed, a custom audience is no longer eligible for daily ad/bidding data updates or participation in the ad selection process.                                                                                                                                                                                     |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                                                                                               | ` `[getName](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#getName())`() ` The custom audience's name is an arbitrary string provided by the owner and buyer on creation of the[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)object.                                                                                                                      |
| ` `[TrustedBiddingData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/TrustedBiddingData)                                     | ` `[getTrustedBiddingData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#getTrustedBiddingData())`() ` Trusted bidding data consists of a URI pointing to a trusted server for buyers' bidding data and a list of keys to query the server with.                                                                                                                                                                                                |
| ` `[AdSelectionSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdSelectionSignals)                                             | ` `[getUserBiddingSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#getUserBiddingSignals())`() ` User bidding signals are optionally provided by buyers to be consumed by buyer-provided JavaScript during ad selection in an isolated execution environment.                                                                                                                                                                             |
| ` int`                                                                                                                                                                              | ` `[hashCode](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#hashCode())`() ` Returns the hash of the[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)object's data.                                                                                                                                                                                          |
| ` void`                                                                                                                                                                             | ` `[writeToParcel](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience#writeToParcel(android.os.Parcel,%20int))`(`[Parcel](https://developer.android.com/reference/android/os/Parcel)` dest, int flags) ` Flatten this object in to a Parcel.                                                                                                                                                                                                         |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||
| From interface` `[android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable)` ` |------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract int`  | ` `[describeContents](https://developer.android.com/reference/android/os/Parcelable#describeContents())`() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.                                    | | ` abstract void` | ` `[writeToParcel](https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int))`(`[Parcel](https://developer.android.com/reference/android/os/Parcel)` dest, int flags) ` Flatten this object in to a Parcel. | ||

## Fields

### CREATOR

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public static final Creator<CustomAudience> CREATOR
```

<br />

<br />

## Public methods

### equals

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public boolean equals (Object o)
```

Checks whether two[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)objects contain the same information.

<br />

|                            Parameters                             ||
|-----|--------------------------------------------------------------|
| `o` | `Object`: the reference object with which to compare. <br /> |

|                                         Returns                                          ||
|-----------|-------------------------------------------------------------------------------|
| `boolean` | `true`if this object is the same as the obj argument;`false`otherwise. <br /> |

### getActivationTime

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public Instant getActivationTime ()
```

On creation of the[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)object, an optional activation time may be set in the future, in order to serve a delayed activation. If the field is not set, the[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)will be activated at the time of joining.

For example, a custom audience for lapsed users may not activate until a threshold of inactivity is reached, at which point the custom audience's ads will participate in the ad selection process, potentially redirecting lapsed users to the original owner application.

The maximum delay in activation is 60 days from initial creation.

If specified, the activation time must be an earlier instant than the expiration time.

<br />

|                                                                                                                            Returns                                                                                                                            ||
|----------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Instant](https://developer.android.com/reference/java/time/Instant) | the timestamp[Instant](https://developer.android.com/reference/java/time/Instant), truncated to milliseconds, after which the custom audience is active This value may be`null`. <br /> |

### getAds

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public List<AdData> getAds ()
```

This list of[AdData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdData)objects is a full and complete list of the ads that will be served by this[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)during the ad selection process.

If not specified, or if an empty list is provided, the[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)will not participate in ad selection until a valid list of ads are provided via the daily update for the custom audience.

<br />

|                                                                                                                                                                                                                              Returns                                                                                                                                                                                                                               ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [List](https://developer.android.com/reference/java/util/List)`<`[AdData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdData)`>` | a[List](https://developer.android.com/reference/java/util/List)of[AdData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdData)objects representing ads currently served by the custom audience This value cannot be`null`. <br /> |

### getBiddingLogicUri

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public Uri getBiddingLogicUri ()
```

Returns the target URI used to fetch bidding logic when a custom audience participates in the ad selection process. The URI must use HTTPS.

<br />

|                                                                   Returns                                                                   ||
|----------------------------------------------------------------|-----------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri) | the URI for fetching buyer bidding logic This value cannot be`null`. <br /> |

### getBuyer

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public AdTechIdentifier getBuyer ()
```

A buyer is identified by a domain in the form "buyerexample.com".

<br />

|                                                                                                                                                                        Returns                                                                                                                                                                         ||
|----------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AdTechIdentifier](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdTechIdentifier) | an[AdTechIdentifier](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdTechIdentifier)containing the custom audience's buyer's domain This value cannot be`null`. <br /> |

### getDailyUpdateUri

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public Uri getDailyUpdateUri ()
```

This URI points to a buyer-operated server that hosts updated bidding data and ads metadata to be used in the on-device ad selection process. The URI must use HTTPS.

<br />

|                                                                  Returns                                                                  ||
|----------------------------------------------------------------|---------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri) | the custom audience's daily update URI This value cannot be`null`. <br /> |

### getExpirationTime

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public Instant getExpirationTime ()
```

Once the expiration time has passed, a custom audience is no longer eligible for daily ad/bidding data updates or participation in the ad selection process. The custom audience will then be deleted from memory by the next daily update.

If no expiration time is provided on creation of the[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience), expiry will default to 60 days from activation.

The maximum expiry is 60 days from initial activation.

<br />

|                                                                                                                                Returns                                                                                                                                ||
|----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Instant](https://developer.android.com/reference/java/time/Instant) | the timestamp[Instant](https://developer.android.com/reference/java/time/Instant), truncated to milliseconds, after which the custom audience should be removed This value may be`null`. <br /> |

### getName

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public String getName ()
```

The custom audience's name is an arbitrary string provided by the owner and buyer on creation of the[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)object.

<br />

|                                                                    Returns                                                                    ||
|--------------------------------------------------------------------|---------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the String name of the custom audience This value cannot be`null`. <br /> |

### getTrustedBiddingData

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public TrustedBiddingData getTrustedBiddingData ()
```

Trusted bidding data consists of a URI pointing to a trusted server for buyers' bidding data and a list of keys to query the server with. Note that the keys are arbitrary identifiers that will only be used to query the trusted server for a buyer's bidding logic during ad selection.

If not specified, the[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)will not participate in ad selection until trusted bidding data are provided via the daily update for the custom audience.

<br />

|                                                                                                                                                                                         Returns                                                                                                                                                                                         ||
|----------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [TrustedBiddingData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/TrustedBiddingData) | a[TrustedBiddingData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/TrustedBiddingData)object containing the custom audience's trusted bidding data This value may be`null`. <br /> |

### getUserBiddingSignals

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public AdSelectionSignals getUserBiddingSignals ()
```

User bidding signals are optionally provided by buyers to be consumed by buyer-provided JavaScript during ad selection in an isolated execution environment.

If the user bidding signals are not a valid JSON object that can be consumed by the buyer's JS, the custom audience will not be eligible for ad selection.

If not specified, the[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)will not participate in ad selection until user bidding signals are provided via the daily update for the custom audience.

<br />

|                                                                                                                                                                                     Returns                                                                                                                                                                                      ||
|--------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AdSelectionSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdSelectionSignals) | an[AdSelectionSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdSelectionSignals)object representing the user bidding signals for the custom audience This value may be`null`. <br /> |

### hashCode

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int hashCode ()
```

Returns the hash of the[CustomAudience](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/CustomAudience)object's data.

<br />

|                     Returns                      ||
|-------|-------------------------------------------|
| `int` | a hash code value for this object. <br /> |

### writeToParcel

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void writeToParcel (Parcel dest, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

|                                                                                                                                                                                                                               Parameters                                                                                                                                                                                                                                ||
|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `dest`  | `Parcel`: This value cannot be`null`. <br />                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or[Parcelable.PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE). Value is either`0`or a combination of[Parcelable.PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE), and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES <br /> |