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 |
Serializes the |
int |
|
@NonNull Object |
get() De-serializes the object passed in for IPC communication. |
void |
writeToParcel(@NonNull Parcel dest, int flags) |
Inherited Constants |
||||
---|---|---|---|---|
|
Constants
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 |
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 |