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

Link copied to clipboard

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.

Link copied to clipboard

Unmarshall a byte array, previously generated with ParcelUtil.marshall. Note: Do not forget to call Parcel.recycle, after you are done with the Parcel.

Recreates a Parcelable that was previously marshalled.