Bundleable

class Bundleable : Parcelable


A class that serializes and stores an object for sending over IPC.

Summary

Public functions

java-static Bundleable
create(objectToSerialize: Any)

Serializes the objectToSerialize into a Bundleable to send over IPC.

Int
Any
get()

De-serializes the object passed in for IPC communication.

Unit
writeToParcel(dest: Parcel, flags: Int)

Constants

CREATOR

Added in 1.0.0
const val CREATORParcelable.Creator<Bundleable!>

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

describeContents

Added in 1.0.0
fun describeContents(): Int

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

writeToParcel

Added in 1.0.0
fun writeToParcel(dest: Parcel, flags: Int): Unit