Bundleable


public final class Bundleable implements Parcelable


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

Summary

Constants

static final @NonNull Parcelable.Creator<Bundleable>

Public methods

static @NonNull Bundleable
create(@NonNull Object objectToSerialize)

Serializes the objectToSerialize into a Bundleable to send over IPC.

int
@NonNull Object
get()

De-serializes the object passed in for IPC communication.

void
writeToParcel(@NonNull Parcel dest, int flags)

Inherited Constants

From android.os.Parcelable
static final int
static final int

Constants

CREATOR

Added in 1.0.0
public static final @NonNull Parcelable.Creator<BundleableCREATOR

Public methods

create

Added in 1.0.0
public static @NonNull Bundleable create(@NonNull Object objectToSerialize)

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
public int describeContents()

get

Added in 1.0.0
public @NonNull Object get()

De-serializes the object passed in for IPC communication.

Throws
androidx.car.app.serialization.BundlerException

if deserialization fails

writeToParcel

Added in 1.0.0
public void writeToParcel(@NonNull Parcel dest, int flags)