ParcelCompat

class ParcelCompat
kotlin.Any
   ↳ androidx.core.os.ParcelCompat

Helper for accessing features in Parcel.

Summary

Public methods
static Boolean

Read a boolean value from the parcel at the current Parcel#dataPosition().

static Unit
writeBoolean(out: Parcel!, value: Boolean)

Write a boolean value into the parcel at the current Parcel#dataPosition(), growing Parcel#dataCapacity() if needed.

Public methods

readBoolean

static fun readBoolean(in: Parcel!): Boolean

Read a boolean value from the parcel at the current Parcel#dataPosition().

writeBoolean

static fun writeBoolean(out: Parcel!, value: Boolean): Unit

Write a boolean value into the parcel at the current Parcel#dataPosition(), growing Parcel#dataCapacity() if needed.

Note: This method currently delegates to Parcel#writeInt with a value of 1 or 0 for true or false, respectively, but may change in the future.