ParcelUtil

ParcelUtil

object ParcelUtil---

Deprecated

Provides generic parcelization logic that is not required when interacting with the Player SDK.


Contains a set of methods to handle Parcelable. This object is deprecated and should no longer be used.

Functions

NameSummary
marshall@JvmStatic
fun marshall(parcelable: Parcelable): ByteArray
Marshalls the provided Parcelable i.e. returns a byte array representation of the Parcelable. Do not persist the marshalled Parcelable. Also, if used for IPC, make sure both applications have the same version of the Objects in the Parcelable.
unmarshall@JvmStatic
fun unmarshall(data: ByteArray): Parcel
Unmarshall a byte array, previously generated with ParcelUtil.marshall. Note: Do not forget to call Parcel.recycle, after you are done with the Parcel.
@JvmStatic
fun <T> unmarshall(data: ByteArray, creator: Parcelable.Creator<T>): T
Recreates a Parcelable that was previously marshalled.