Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Nested Classes](https://developer.android.com/reference/android/companion/AssociationRequest#nestedclasses) \| [Constants](https://developer.android.com/reference/android/companion/AssociationRequest#constants) \| [Inherited Constants](https://developer.android.com/reference/android/companion/AssociationRequest#inhconstants) \| [Fields](https://developer.android.com/reference/android/companion/AssociationRequest#lfields) \| [Methods](https://developer.android.com/reference/android/companion/AssociationRequest#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/companion/AssociationRequest#inhmethods)

# AssociationRequest

*** ** * ** ***


`
public

final

class
AssociationRequest
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


implements

https://developer.android.com/reference/android/os/Parcelable


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.companion.AssociationRequest |

<br />

*** ** * ** ***

A request for the user to select a companion device to associate with.

You can optionally set `https://developer.android.com/reference/android/companion/AssociationRequest.Builder#addDeviceFilter(android.companion.DeviceFilter<?>)` for which devices to show to the
user to select from.
The exact type and fields of the filter you can set depend on the
medium type. See `https://developer.android.com/reference/android/companion/AssociationRequest.Builder`'s static factory methods for specific protocols that are
supported.

You can also set `https://developer.android.com/reference/android/companion/AssociationRequest.Builder#setSingleDevice(boolean)` to request a popup with single
device to be shown instead of a list to choose from

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/companion/AssociationRequest.Builder` A builder for `https://developer.android.com/reference/android/companion/AssociationRequest` |

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/companion/AssociationRequest#DEVICE_PROFILE_APP_STREAMING` Device profile: a virtual display capable of rendering Android applications, and sending back input events. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/companion/AssociationRequest#DEVICE_PROFILE_AUTOMOTIVE_PROJECTION` Device profile: Android Automotive Projection Only applications that have been granted `https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_AUTOMOTIVE_PROJECTION` are allowed to request to be associated with such devices. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/companion/AssociationRequest#DEVICE_PROFILE_COMPUTER` Device profile: Allows the companion app to access notification, recent photos and media for computer cross-device features. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/companion/AssociationRequest#DEVICE_PROFILE_FITNESS_TRACKER` Device profile: fitness tracker. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/companion/AssociationRequest#DEVICE_PROFILE_GLASSES` Device profile: glasses. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/companion/AssociationRequest#DEVICE_PROFILE_MEDICAL` Device profile: A medical device, e.g. blood sugar level monitor, heart rate monitor, etc. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/companion/AssociationRequest#DEVICE_PROFILE_NEARBY_DEVICE_STREAMING` Device profile: a virtual device capable of rendering content from an Android host to a nearby device. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/companion/AssociationRequest#DEVICE_PROFILE_WATCH` Device profile: watch. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/companion/AssociationRequest#PERMISSION_GROUP_NEARBY` Permission group to access nearby devices. |

| ### Inherited constants |
|---|
| From interface `https://developer.android.com/reference/android/os/Parcelable` |---|---| | `int` | `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor. | | `int` | `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` Flag for use with `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 https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/companion/AssociationRequest>` | `https://developer.android.com/reference/android/companion/AssociationRequest#CREATOR` |

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/companion/AssociationRequest#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ` boolean` | ` https://developer.android.com/reference/android/companion/AssociationRequest#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object o) ` Indicates whether some other object is "equal to" this one. |
| ` https://developer.android.com/reference/android/graphics/drawable/Icon` | ` https://developer.android.com/reference/android/companion/AssociationRequest#getDeviceIcon()() ` Get the device icon of the self-managed association request. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/companion/AssociationRequest#getDeviceProfile()() ` |
| ` https://developer.android.com/reference/java/lang/CharSequence` | ` https://developer.android.com/reference/android/companion/AssociationRequest#getDisplayName()() ` The Display name of the device to be shown in the CDM confirmation UI. |
| ` https://developer.android.com/reference/java/util/Set<https://developer.android.com/reference/java/lang/String>` | ` https://developer.android.com/reference/android/companion/AssociationRequest#getExtraPermissions()() ` Gets the extra permissions to request/grant for non-profile device. |
| ` boolean` | ` https://developer.android.com/reference/android/companion/AssociationRequest#isForceConfirmation()() ` Indicates whether the application requires the `https://developer.android.com/reference/android/companion/CompanionDeviceManager` service to collect an explicit confirmation from the user before creating an association, even if such confirmation is not required from the service's perspective. |
| ` boolean` | ` https://developer.android.com/reference/android/companion/AssociationRequest#isRemoteAiAgentSupported()() ` |
| ` boolean` | ` https://developer.android.com/reference/android/companion/AssociationRequest#isSelfManaged()() ` Whether the association is to be managed by the companion application. |
| ` boolean` | ` https://developer.android.com/reference/android/companion/AssociationRequest#isSingleDevice()() ` Whether only a single device should match the provided filter. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/companion/AssociationRequest#toString()() ` Returns a string representation of the object. |
| ` void` | ` https://developer.android.com/reference/android/companion/AssociationRequest#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Flatten this object in to a Parcel. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` 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 https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` 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` | ` 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` | ` 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 ` https://developer.android.com/reference/android/os/Parcelable ` |---|---| | ` abstract int` | ` 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` | ` https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Flatten this object in to a Parcel. | ||

## Constants

### DEVICE_PROFILE_APP_STREAMING

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

```
public static final String DEVICE_PROFILE_APP_STREAMING
```

Device profile: a virtual display capable of rendering Android applications, and sending back
input events.


Only applications that have been granted
`https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_APP_STREAMING` are allowed to
request to be associated with such devices.


Requires `https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_APP_STREAMING`

<br />

**See also:**

- `https://developer.android.com/reference/android/companion/AssociationRequest.Builder#setDeviceProfile(java.lang.String)`

Constant Value:

"android.app.role.COMPANION_DEVICE_APP_STREAMING"


### DEVICE_PROFILE_AUTOMOTIVE_PROJECTION

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

```
public static final String DEVICE_PROFILE_AUTOMOTIVE_PROJECTION
```

Device profile: Android Automotive Projection

Only applications that have been granted
`https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_AUTOMOTIVE_PROJECTION` are
allowed to request to be associated with such devices.


Requires `https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_AUTOMOTIVE_PROJECTION`

<br />

**See also:**

- `https://developer.android.com/reference/android/companion/AssociationRequest.Builder#setDeviceProfile(java.lang.String)`

Constant Value:

"android.app.role.SYSTEM_AUTOMOTIVE_PROJECTION"


### DEVICE_PROFILE_COMPUTER

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

```
public static final String DEVICE_PROFILE_COMPUTER
```

Device profile: Allows the companion app to access notification, recent photos and media for
computer cross-device features.

Only applications that have been granted
`https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_COMPUTER` are allowed to
request to be associated with such devices.


Requires `https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_COMPUTER`

<br />

**See also:**

- `https://developer.android.com/reference/android/companion/AssociationRequest.Builder#setDeviceProfile(java.lang.String)`

Constant Value:

"android.app.role.COMPANION_DEVICE_COMPUTER"


### DEVICE_PROFILE_FITNESS_TRACKER

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

```
public static final String DEVICE_PROFILE_FITNESS_TRACKER
```

Device profile: fitness tracker.

If specified, the current request may have a modified UI to highlight that the device being
set up is a specific kind of device, and some extra permissions may be granted to the app
as a result.

Using it requires declaring uses-permission
`https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_WATCH` in the manifest.

[Learn more](https://developer.android.com/about/versions/12/features#cdm-profiles)
about device profiles.


Requires `https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_WATCH`

<br />

**See also:**

- `https://developer.android.com/reference/android/companion/AssociationRequest.Builder#setDeviceProfile(java.lang.String)`

Constant Value:

"android.app.role.COMPANION_DEVICE_FITNESS_TRACKER"


### DEVICE_PROFILE_GLASSES

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

```
public static final String DEVICE_PROFILE_GLASSES
```

Device profile: glasses.

If specified, the current request may have a modified UI to highlight that the device being
set up is a glasses device, and some extra permissions may be granted to the app
as a result.

Using it requires declaring uses-permission
`https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_GLASSES` in the manifest.


Requires `https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_GLASSES`

<br />

**See also:**

- `https://developer.android.com/reference/android/companion/AssociationRequest.Builder#setDeviceProfile(java.lang.String)`

Constant Value:

"android.app.role.COMPANION_DEVICE_GLASSES"


### DEVICE_PROFILE_MEDICAL

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

```
public static final String DEVICE_PROFILE_MEDICAL
```

Device profile: A medical device, e.g. blood sugar level monitor, heart rate monitor, etc.

If specified, the current request may have a modified UI to highlight that the device being
set up is a medical device, and some extra permissions may be granted to the app
as a result.

Using it requires declaring uses-permission
`https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_MEDICAL` in the manifest.


Requires `https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_MEDICAL`

<br />

Constant Value:

"android.app.role.COMPANION_DEVICE_MEDICAL"


### DEVICE_PROFILE_NEARBY_DEVICE_STREAMING

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

```
public static final String DEVICE_PROFILE_NEARBY_DEVICE_STREAMING
```

Device profile: a virtual device capable of rendering content from an Android host to a
nearby device.


Only applications that have been granted
`https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_NEARBY_DEVICE_STREAMING`
are allowed to request to be associated with such devices.


Requires `https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_NEARBY_DEVICE_STREAMING`

<br />

**See also:**

- `https://developer.android.com/reference/android/companion/AssociationRequest.Builder#setDeviceProfile(java.lang.String)`

Constant Value:

"android.app.role.COMPANION_DEVICE_NEARBY_DEVICE_STREAMING"


### DEVICE_PROFILE_WATCH

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

```
public static final String DEVICE_PROFILE_WATCH
```

Device profile: watch.

If specified, the current request may have a modified UI to highlight that the device being
set up is a specific kind of device, and some extra permissions may be granted to the app
as a result.

Using it requires declaring uses-permission
`https://developer.android.com/reference/android/Manifest.permission#REQUEST_COMPANION_PROFILE_WATCH` in the manifest.

[Learn more](https://developer.android.com/about/versions/12/features#cdm-profiles)
about device profiles.

<br />

**See also:**

- `https://developer.android.com/reference/android/companion/AssociationRequest.Builder#setDeviceProfile(java.lang.String)`

Constant Value:

"android.app.role.COMPANION_DEVICE_WATCH"


### PERMISSION_GROUP_NEARBY

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

```
public static final String PERMISSION_GROUP_NEARBY
```

Permission group to access nearby devices.

<br />

Constant Value:

"NEARBY_DEVICES"


## Fields

### CREATOR

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

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

<br />

<br />

## Public methods

### describeContents

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

```
public int describeContents ()
```

Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`,
the return value of this method must include the
`https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### equals

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

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

Indicates whether some other object is "equal to" this one.


The `equals` method implements an equivalence relation
on non-null object references:

- It is *reflexive*: for any non-null reference value `x`, `x.equals(x)` should return `true`.
- It is *symmetric*: for any non-null reference values `x` and `y`, `x.equals(y)` should return `true` if and only if `y.equals(x)` returns `true`.
- It is *transitive*: for any non-null reference values `x`, `y`, and `z`, if `x.equals(y)` returns `true` and `y.equals(z)` returns `true`, then `x.equals(z)` should return `true`.
- It is *consistent*: for any non-null reference values `x` and `y`, multiple invocations of `x.equals(y)` consistently return `true` or consistently return `false`, provided no information used in `equals` comparisons on the objects is modified.
- For any non-null reference value `x`, `x.equals(null)` should return `false`.


An equivalence relation partitions the elements it operates on
into *equivalence classes*; all the members of an
equivalence class are equal to each other. Members of an
equivalence class are substitutable for each other, at least
for some purposes.

<br />

| Parameters ||
|---|---|
| `o` | `Object`: This value may be `null`. <br /> |

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

### getDeviceIcon

Added in [version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public Icon getDeviceIcon ()
```

Get the device icon of the self-managed association request.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Icon` | the device icon, or `null` if no device icon has been set. <br /> |

**See also:**

- `https://developer.android.com/reference/android/companion/AssociationRequest.Builder#setDeviceIcon(android.graphics.drawable.Icon)`

### getDeviceProfile

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

```
public String getDeviceProfile ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | profile of the companion device. This value may be `null`. Value is one of the following: - `https://developer.android.com/reference/android/companion/AssociationRequest#DEVICE_PROFILE_WATCH` - `https://developer.android.com/reference/android/companion/AssociationRequest#DEVICE_PROFILE_COMPUTER` - `https://developer.android.com/reference/android/companion/AssociationRequest#DEVICE_PROFILE_AUTOMOTIVE_PROJECTION` - `https://developer.android.com/reference/android/companion/AssociationRequest#DEVICE_PROFILE_APP_STREAMING` - `https://developer.android.com/reference/android/companion/AssociationRequest#DEVICE_PROFILE_GLASSES` - `https://developer.android.com/reference/android/companion/AssociationRequest#DEVICE_PROFILE_NEARBY_DEVICE_STREAMING` |

### getDisplayName

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

```
public CharSequence getDisplayName ()
```

The Display name of the device to be shown in the CDM confirmation UI. Must be non-null for
"self-managed" association.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence` | <br /> |

### getExtraPermissions

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

```
public Set<String> getExtraPermissions ()
```

Gets the extra permissions to request/grant for non-profile device.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/Set<https://developer.android.com/reference/java/lang/String>` | A set of permission strings. This value cannot be `null`. <br /> |

### isForceConfirmation

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

```
public boolean isForceConfirmation ()
```

Indicates whether the application requires the `https://developer.android.com/reference/android/companion/CompanionDeviceManager` service to
collect an explicit confirmation from the user before creating an association, even if
such confirmation is not required from the service's perspective.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/companion/AssociationRequest.Builder#setForceConfirmation(boolean)`

### isRemoteAiAgentSupported

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

```
public boolean isRemoteAiAgentSupported ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/companion/AssociationRequest.Builder#setRemoteAiAgentSupported(boolean)`

### isSelfManaged

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

```
public boolean isSelfManaged ()
```

Whether the association is to be managed by the companion application.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/companion/AssociationRequest.Builder#setSelfManaged(boolean)`

### isSingleDevice

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

```
public boolean isSingleDevice ()
```

Whether only a single device should match the provided filter.

When scanning for a single device with a specific `https://developer.android.com/reference/android/companion/BluetoothDeviceFilter` mac
address, bonded devices are also searched among. This allows to obtain the necessary app
privileges even if the device is already paired.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### toString

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

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a string representation of the object. <br /> |

### writeToParcel

Added in [API level 26](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 `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` |