Bundleable
class Bundleable : Parcelable
A class that serializes and stores an object for sending over IPC.
Summary
Constants |
|
|---|---|
const Parcelable.Creator<Bundleable!> |
Public functions |
|
|---|---|
java-static Bundleable |
Serializes the |
Int |
|
Any |
get()De-serializes the object passed in for IPC communication. |
Unit |
writeToParcel(dest: Parcel, flags: Int) |
Constants
Public functions
create
Added in 1.0.0
java-static fun create(objectToSerialize: Any): Bundleable
Serializes the objectToSerialize into a Bundleable to send over IPC.
| Throws | |
|---|---|
androidx.car.app.serialization.BundlerException |
if serialization fails |
get
Added in 1.0.0
fun get(): Any
De-serializes the object passed in for IPC communication.
| Throws | |
|---|---|
androidx.car.app.serialization.BundlerException |
if deserialization fails |