From bc86a2df51914b1c25ea6a9c605fcc5c4a3b7b23 Mon Sep 17 00:00:00 2001 From: Chris Keenan <10093880+chRyNaN@users.noreply.github.com> Date: Tue, 27 Aug 2024 15:44:41 -0400 Subject: [PATCH] Generated updated documentation --- .../-saver-scope/index.md | 2 +- .../-saver/index.md | 2 +- .../com.chrynan.parcelable.compose/index.md | 4 +-- .../-android-parcel/index.md | 32 +++++++++---------- .../-android-parcel/is-recycled.md | 2 +- .../-android-parcel/recycle.md | 2 +- .../-android-parcel/set-data-position.md | 2 +- .../-android-parcel/to-byte-array.md | 2 +- .../-byte-array-parcel/index.md | 24 +++++++------- .../-parcel-decoder/index.md | 12 +++---- .../-parcel-encoder/index.md | 12 +++---- .../com.chrynan.parcelable.core/-parcel.md | 8 ++--- .../-parcel/index.md | 20 ++++++------ .../-parcelable/-custom/index.md | 26 +++++++-------- .../-parcelable/-default/index.md | 26 +++++++-------- .../-parcelable/index.md | 26 +++++++-------- .../[android]decode-from-parcel.md | 8 ++--- .../[android]encode-to-parcel.md | 8 ++--- .../[jvm]decode-from-parcel.md | 8 ++--- .../[jvm]encode-to-parcel.md | 8 ++--- .../decode-from-bundle-or-null.md | 4 +-- .../decode-from-bundle.md | 8 ++--- .../decode-from-intent.md | 6 ++-- .../encode-to-bundle.md | 8 ++--- .../encode-to-intent.md | 6 ++-- .../get-parcelable-extra.md | 6 ++-- .../get-parcelable.md | 6 ++-- .../com.chrynan.parcelable.core/index.md | 30 ++++++++--------- .../com.chrynan.parcelable.core/put-extra.md | 6 ++-- .../put-parcelable.md | 6 ++-- .../read-from-parcel.md | 2 +- .../com.chrynan.parcelable.core/to-parcel.md | 4 +-- 32 files changed, 163 insertions(+), 163 deletions(-) diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver-scope/index.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver-scope/index.md index 67479da..44c9f7d 100644 --- a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver-scope/index.md +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver-scope/index.md @@ -9,7 +9,7 @@ expect fun interface [SaverScope](index.md) actual fun interface [SaverScope](index.md) [android, jvm]\ -actual typealias [SaverScope](index.md) = [SaverScope](https://developer.android.com/reference/kotlin/androidx/compose/runtime/saveable/SaverScope.html) +actual typealias [SaverScope](index.md) = [androidx.compose.runtime.saveable.SaverScope](https://developer.android.com/reference/kotlin/androidx/compose/runtime/saveable/SaverScope.html) ## Functions diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/index.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/index.md index 2997d73..fb01254 100644 --- a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/index.md +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/index.md @@ -9,7 +9,7 @@ expect interface [Saver](index.md)<[Original](index.md), [Saveable](index.md) actual interface [Saver](index.md)<[Original](index.md), [Saveable](index.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [android, jvm]\ -actual typealias [Saver](index.md) = [Saver](https://developer.android.com/reference/kotlin/androidx/compose/runtime/saveable/Saver.html)<[Original](index.md), [Saveable](index.md)> +actual typealias [Saver](index.md)<[Original](index.md), [Saveable](index.md)> = [androidx.compose.runtime.saveable.Saver](https://developer.android.com/reference/kotlin/androidx/compose/runtime/saveable/Saver.html)<[Original](index.md), [Saveable](index.md)> ## Functions diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/index.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/index.md index acad903..eb7d989 100644 --- a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/index.md +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/index.md @@ -6,8 +6,8 @@ | Name | Summary | |---|---| -| [Saver](-saver/index.md) | [common, js, native, wasmJs, android, jvm]
[common]
expect interface [Saver](-saver/index.md)<[Original](-saver/index.md), [Saveable](-saver/index.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
[js, native, wasmJs]
actual interface [Saver](-saver/index.md)<[Original](-saver/index.md), [Saveable](-saver/index.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
[android, jvm]
actual typealias [Saver](-saver/index.md) = [Saver](https://developer.android.com/reference/kotlin/androidx/compose/runtime/saveable/Saver.html)<[Original](-saver/index.md), [Saveable](-saver/index.md)> | -| [SaverScope](-saver-scope/index.md) | [common, js, native, wasmJs, android, jvm]
[common]
expect fun interface [SaverScope](-saver-scope/index.md)
[js, native, wasmJs]
actual fun interface [SaverScope](-saver-scope/index.md)
[android, jvm]
actual typealias [SaverScope](-saver-scope/index.md) = [SaverScope](https://developer.android.com/reference/kotlin/androidx/compose/runtime/saveable/SaverScope.html) | +| [Saver](-saver/index.md) | [common, js, native, wasmJs, android, jvm]
[common]
expect interface [Saver](-saver/index.md)<[Original](-saver/index.md), [Saveable](-saver/index.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
[js, native, wasmJs]
actual interface [Saver](-saver/index.md)<[Original](-saver/index.md), [Saveable](-saver/index.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
[android, jvm]
actual typealias [Saver](-saver/index.md)<[Original](-saver/index.md), [Saveable](-saver/index.md)> = [androidx.compose.runtime.saveable.Saver](https://developer.android.com/reference/kotlin/androidx/compose/runtime/saveable/Saver.html)<[Original](-saver/index.md), [Saveable](-saver/index.md)> | +| [SaverScope](-saver-scope/index.md) | [common, js, native, wasmJs, android, jvm]
[common]
expect fun interface [SaverScope](-saver-scope/index.md)
[js, native, wasmJs]
actual fun interface [SaverScope](-saver-scope/index.md)
[android, jvm]
actual typealias [SaverScope](-saver-scope/index.md) = [androidx.compose.runtime.saveable.SaverScope](https://developer.android.com/reference/kotlin/androidx/compose/runtime/saveable/SaverScope.html) | ## Functions diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/index.md index cc3e0ea..5113de4 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/index.md @@ -2,19 +2,29 @@ # AndroidParcel -class [AndroidParcel](index.md) : [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) +class [AndroidParcel](index.md) : [Parcel](../-parcel/index.md) -An Android implementation of the [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) interface. This class wraps the provided [android.os.Parcel](../../../../parcelable-core/com.chrynan.parcelable.core/-android-parcel/parcel.md) and delegates the reading and writing to it. +An Android implementation of the [Parcel](../-parcel/index.md) interface. This class wraps the provided [android.os.Parcel](../../../../parcelable-core/com.chrynan.parcelable.core/-android-parcel/parcel.md) and delegates the reading and writing to it. -Note that this class should not be confused with the [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html). Instead, this class wraps that class and implements the [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) interface of this library. +Note that this class should not be confused with the [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html). Instead, this class wraps that class and implements the [Parcel](../-parcel/index.md) interface of this library. #### See also | | |---| -| [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) | +| [Parcel](../-parcel/index.md) | | [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) | +## Properties + +| Name | Summary | +|---|---| +| [dataBufferCapacity](data-buffer-capacity.md) | [android]
open override val [dataBufferCapacity](data-buffer-capacity.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of space available in this parcel. This should always be greater than or equal to [dataSize](data-size.md). There may be more space available ([dataBufferCapacity](data-buffer-capacity.md)) in the underlying data buffer than there is data available ([dataSize](data-size.md)). The difference between [dataBufferCapacity](data-buffer-capacity.md) and [dataSize](data-size.md) indicates the amount of room remaining in the underlying data buffer until more space needs to be allocated. | +| [dataPosition](data-position.md) | [android]
open override val [dataPosition](data-position.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The current index position in the data buffer. Should never be more than [dataSize](data-size.md). | +| [dataRemaining](../-parcel/data-remaining.md) | [android]
open val [dataRemaining](../-parcel/data-remaining.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The remaining amount of data to be read ([dataSize](../-parcel/data-size.md) - [dataPosition](../-parcel/data-position.md)). | +| [dataSize](data-size.md) | [android]
open override val [dataSize](data-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of data contained in this parcel. | +| [isRecycled](is-recycled.md) | [android]
open override var [isRecycled](is-recycled.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
Determines whether this [Parcel](../-parcel/index.md)s [recycle](recycle.md) function has been called already. A parcel object should not be used after it is recycled. | + ## Functions | Name | Summary | @@ -30,10 +40,10 @@ Note that this class should not be confused with the [android.os.Parcel](https:/ | [readLong](read-long.md) | [android]
open override fun [readLong](read-long.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
Retrieves a [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) from the Parcel at the current data position. | | [readShort](read-short.md) | [android]
open override fun [readShort](read-short.md)(): [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html)
Retrieves a [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html) from the Parcel at the current data position. | | [readString](read-string.md) | [android]
open override fun [readString](read-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
Retrieves a [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) from the Parcel at the current data position. | -| [recycle](recycle.md) | [android]
open override fun [recycle](recycle.md)()
Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. Attempting to write or read from a recycled [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) may cause an exception to be thrown. | +| [recycle](recycle.md) | [android]
open override fun [recycle](recycle.md)()
Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. Attempting to write or read from a recycled [Parcel](../-parcel/index.md) may cause an exception to be thrown. | | [resetDataPosition](../reset-data-position.md) | [common]
inline fun [Parcel](../-parcel/index.md).[resetDataPosition](../reset-data-position.md)()
A convenience function for calling the [Parcel.setDataPosition](../-parcel/set-data-position.md) with an index value of zero. | | [setDataPosition](set-data-position.md) | [android]
open override fun [setDataPosition](set-data-position.md)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))
Sets the [dataPosition](data-position.md) to the provided [position](set-data-position.md) value. This will throw an exception if the provided [position](set-data-position.md) value is less than zero or exceeds [dataSize](data-size.md). | -| [toByteArray](to-byte-array.md) | [android]
open override fun [toByteArray](to-byte-array.md)(): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)
Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md). Note that the returned [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) data is structured in a way that is meaningful for this implementation, but doesn't guarantee any structure for outside usage or usage between different implementations. | +| [toByteArray](to-byte-array.md) | [android]
open override fun [toByteArray](to-byte-array.md)(): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)
Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](../-parcel/index.md). Note that the returned [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) data is structured in a way that is meaningful for this implementation, but doesn't guarantee any structure for outside usage or usage between different implementations. | | [toString](to-string.md) | [android]
open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | | [writeBoolean](write-boolean.md) | [android]
open override fun [writeBoolean](write-boolean.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))
Writes the [Boolean](write-boolean.md) to the Parcel at the current data position. | | [writeByte](write-byte.md) | [android]
open override fun [writeByte](write-byte.md)(value: [Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html))
Writes the [Byte](write-byte.md) to the Parcel at the current data position. | @@ -44,13 +54,3 @@ Note that this class should not be confused with the [android.os.Parcel](https:/ | [writeLong](write-long.md) | [android]
open override fun [writeLong](write-long.md)(value: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))
Writes the [Long](write-long.md) to the Parcel at the current data position. | | [writeShort](write-short.md) | [android]
open override fun [writeShort](write-short.md)(value: [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html))
Writes the [Short](write-short.md) to the Parcel at the current data position. | | [writeString](write-string.md) | [android]
open override fun [writeString](write-string.md)(value: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))
Writes the [String](write-string.md) to the Parcel at the current data position. | - -## Properties - -| Name | Summary | -|---|---| -| [dataBufferCapacity](data-buffer-capacity.md) | [android]
open override val [dataBufferCapacity](data-buffer-capacity.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of space available in this parcel. This should always be greater than or equal to [dataSize](data-size.md). There may be more space available ([dataBufferCapacity](data-buffer-capacity.md)) in the underlying data buffer than there is data available ([dataSize](data-size.md)). The difference between [dataBufferCapacity](data-buffer-capacity.md) and [dataSize](data-size.md) indicates the amount of room remaining in the underlying data buffer until more space needs to be allocated. | -| [dataPosition](data-position.md) | [android]
open override val [dataPosition](data-position.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The current index position in the data buffer. Should never be more than [dataSize](data-size.md). | -| [dataRemaining](index.md#-139993914%2FProperties%2F-1462739831) | [android]
open val [dataRemaining](index.md#-139993914%2FProperties%2F-1462739831): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The remaining amount of data to be read ([dataSize](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-size.md) - [dataPosition](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md)). | -| [dataSize](data-size.md) | [android]
open override val [dataSize](data-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of data contained in this parcel. | -| [isRecycled](is-recycled.md) | [android]
open override var [isRecycled](is-recycled.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
Determines whether this [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)s [recycle](recycle.md) function has been called already. A parcel object should not be used after it is recycled. | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/is-recycled.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/is-recycled.md index 287a7f8..3254d4c 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/is-recycled.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/is-recycled.md @@ -5,6 +5,6 @@ [android]\ open override var [isRecycled](is-recycled.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) -Determines whether this [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)s [recycle](recycle.md) function has been called already. A parcel object should not be used after it is recycled. +Determines whether this [Parcel](../-parcel/index.md)s [recycle](recycle.md) function has been called already. A parcel object should not be used after it is recycled. Note that this property is unstable between processes. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/recycle.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/recycle.md index 05e3949..f53c16d 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/recycle.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/recycle.md @@ -5,4 +5,4 @@ [android]\ open override fun [recycle](recycle.md)() -Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. Attempting to write or read from a recycled [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) may cause an exception to be thrown. +Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. Attempting to write or read from a recycled [Parcel](../-parcel/index.md) may cause an exception to be thrown. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/set-data-position.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/set-data-position.md index f770a51..6cbf43f 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/set-data-position.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/set-data-position.md @@ -7,4 +7,4 @@ open override fun [setDataPosition](set-data-position.md)(position: [Int](https: Sets the [dataPosition](data-position.md) to the provided [position](set-data-position.md) value. This will throw an exception if the provided [position](set-data-position.md) value is less than zero or exceeds [dataSize](data-size.md). -The position value represents an amount of bytes. For instance, an [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) is a 32-bit (4 byte) integer value, when it is stored in this [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), the [dataSize](data-size.md) will increase by a value of four. To skip over the integer value to the next item, call this function with the current value plus four. +The position value represents an amount of bytes. For instance, an [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) is a 32-bit (4 byte) integer value, when it is stored in this [Parcel](../-parcel/index.md), the [dataSize](data-size.md) will increase by a value of four. To skip over the integer value to the next item, call this function with the current value plus four. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/to-byte-array.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/to-byte-array.md index 1cfc2d4..3b1b3e2 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/to-byte-array.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/to-byte-array.md @@ -5,4 +5,4 @@ [android]\ open override fun [toByteArray](to-byte-array.md)(): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) -Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md). Note that the returned [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) data is structured in a way that is meaningful for this implementation, but doesn't guarantee any structure for outside usage or usage between different implementations. +Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](../-parcel/index.md). Note that the returned [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) data is structured in a way that is meaningful for this implementation, but doesn't guarantee any structure for outside usage or usage between different implementations. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/index.md index f0ca1da..ca71636 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/index.md @@ -17,6 +17,18 @@ Note that the underlying [ByteArray](https://kotlinlang.org/api/latest/jvm/stdli |---|---| | [Companion](-companion/index.md) | [common]
object [Companion](-companion/index.md) | +## Properties + +| Name | Summary | +|---|---| +| [dataBufferCapacity](data-buffer-capacity.md) | [common]
open override val [dataBufferCapacity](data-buffer-capacity.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of space available in this parcel. This should always be greater than or equal to [dataSize](data-size.md). There may be more space available ([dataBufferCapacity](data-buffer-capacity.md)) in the underlying data buffer than there is data available ([dataSize](data-size.md)). The difference between [dataBufferCapacity](data-buffer-capacity.md) and [dataSize](data-size.md) indicates the amount of room remaining in the underlying data buffer until more space needs to be allocated. | +| [dataIndex](data-index.md) | [common]
var [dataIndex](data-index.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Represents the current item index within the data structure. This is different from [dataPosition](data-position.md) as that represents the byte value position, whereas this represents the item position. For instance, a [ByteArrayParcel](index.md) containing two [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) values will have a [dataSize](data-size.md) of eight (four bytes for each [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)). If the [dataIndex](data-index.md) equals one, the [dataPosition](data-position.md) should equal four. | +| [dataItemCount](data-item-count.md) | [common]
val [dataItemCount](data-item-count.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Retrieves the amount of items stored within this data structure. This is different from [dataSize](data-size.md) as that represents the total amount of bytes stored and this [dataItemCount](data-item-count.md) represents the total amount of items stored. For instance, if there are two [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) values stored, then this [dataItemCount](data-item-count.md) will return a value of two, whereas the [dataSize](data-size.md) will return a value of eight (each [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) has four bytes). | +| [dataPosition](data-position.md) | [common]
open override val [dataPosition](data-position.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The current index position in the data buffer. Should never be more than [dataSize](data-size.md). | +| [dataRemaining](../-parcel/data-remaining.md) | [common]
open val [dataRemaining](../-parcel/data-remaining.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The remaining amount of data to be read ([dataSize](../-parcel/data-size.md) - [dataPosition](../-parcel/data-position.md)). | +| [dataSize](data-size.md) | [common]
open override val [dataSize](data-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of data contained in this parcel. | +| [isRecycled](is-recycled.md) | [common]
open override var [isRecycled](is-recycled.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
Determines whether this [Parcel](../-parcel/index.md)s [recycle](recycle.md) function has been called already. A parcel object should not be used after it is recycled. | + ## Functions | Name | Summary | @@ -46,15 +58,3 @@ Note that the underlying [ByteArray](https://kotlinlang.org/api/latest/jvm/stdli | [writeLong](write-long.md) | [common]
open override fun [writeLong](write-long.md)(value: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))
Writes the [Long](write-long.md) to the Parcel at the current data position. | | [writeShort](write-short.md) | [common]
open override fun [writeShort](write-short.md)(value: [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html))
Writes the [Short](write-short.md) to the Parcel at the current data position. | | [writeString](write-string.md) | [common]
open override fun [writeString](write-string.md)(value: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))
Writes the [String](write-string.md) to the Parcel at the current data position. | - -## Properties - -| Name | Summary | -|---|---| -| [dataBufferCapacity](data-buffer-capacity.md) | [common]
open override val [dataBufferCapacity](data-buffer-capacity.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of space available in this parcel. This should always be greater than or equal to [dataSize](data-size.md). There may be more space available ([dataBufferCapacity](data-buffer-capacity.md)) in the underlying data buffer than there is data available ([dataSize](data-size.md)). The difference between [dataBufferCapacity](data-buffer-capacity.md) and [dataSize](data-size.md) indicates the amount of room remaining in the underlying data buffer until more space needs to be allocated. | -| [dataIndex](data-index.md) | [common]
var [dataIndex](data-index.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Represents the current item index within the data structure. This is different from [dataPosition](data-position.md) as that represents the byte value position, whereas this represents the item position. For instance, a [ByteArrayParcel](index.md) containing two [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) values will have a [dataSize](data-size.md) of eight (four bytes for each [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)). If the [dataIndex](data-index.md) equals one, the [dataPosition](data-position.md) should equal four. | -| [dataItemCount](data-item-count.md) | [common]
val [dataItemCount](data-item-count.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Retrieves the amount of items stored within this data structure. This is different from [dataSize](data-size.md) as that represents the total amount of bytes stored and this [dataItemCount](data-item-count.md) represents the total amount of items stored. For instance, if there are two [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) values stored, then this [dataItemCount](data-item-count.md) will return a value of two, whereas the [dataSize](data-size.md) will return a value of eight (each [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) has four bytes). | -| [dataPosition](data-position.md) | [common]
open override val [dataPosition](data-position.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The current index position in the data buffer. Should never be more than [dataSize](data-size.md). | -| [dataRemaining](../-parcel/data-remaining.md) | [common]
open val [dataRemaining](../-parcel/data-remaining.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The remaining amount of data to be read ([dataSize](../-parcel/data-size.md) - [dataPosition](../-parcel/data-position.md)). | -| [dataSize](data-size.md) | [common]
open override val [dataSize](data-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of data contained in this parcel. | -| [isRecycled](is-recycled.md) | [common]
open override var [isRecycled](is-recycled.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
Determines whether this [Parcel](../-parcel/index.md)s [recycle](recycle.md) function has been called already. A parcel object should not be used after it is recycled. | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/index.md index 9d83276..034511e 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/index.md @@ -15,6 +15,12 @@ A Decoder that decodes its values from the provided [input](../-parcel/index.md) |---|---| | [ParcelDecoder](-parcel-decoder.md) | [common]
constructor(serializersModule: SerializersModule = EmptySerializersModule(), input: [Parcel](../-parcel/index.md)) | +## Properties + +| Name | Summary | +|---|---| +| [serializersModule](serializers-module.md) | [common]
open override val [serializersModule](serializers-module.md): SerializersModule | + ## Functions | Name | Summary | @@ -55,9 +61,3 @@ A Decoder that decodes its values from the provided [input](../-parcel/index.md) | [equals](equals.md) | [common]
open operator override fun [equals](equals.md)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [hashCode](hash-code.md) | [common]
open override fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [toString](to-string.md) | [common]
open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | - -## Properties - -| Name | Summary | -|---|---| -| [serializersModule](serializers-module.md) | [common]
open override val [serializersModule](serializers-module.md): SerializersModule | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/index.md index 3eb40c3..b0c82b4 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/index.md @@ -15,6 +15,12 @@ An Encoder that encodes its values to the provided [output](../-parcel/index.md) |---|---| | [ParcelEncoder](-parcel-encoder.md) | [common]
constructor(serializersModule: SerializersModule = EmptySerializersModule(), output: [Parcel](../-parcel/index.md)) | +## Properties + +| Name | Summary | +|---|---| +| [serializersModule](serializers-module.md) | [common]
open override val [serializersModule](serializers-module.md): SerializersModule | + ## Functions | Name | Summary | @@ -55,9 +61,3 @@ An Encoder that encodes its values to the provided [output](../-parcel/index.md) | [hashCode](hash-code.md) | [common]
open override fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [shouldEncodeElementDefault](index.md#-1741660893%2FFunctions%2F1557879601) | [common]
open fun [shouldEncodeElementDefault](index.md#-1741660893%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [toString](to-string.md) | [common]
open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | - -## Properties - -| Name | Summary | -|---|---| -| [serializersModule](serializers-module.md) | [common]
open override val [serializersModule](serializers-module.md): SerializersModule | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel.md index 9c9b309..5fdf003 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel.md @@ -3,9 +3,9 @@ # Parcel [android]\ -inline fun [Parcel](-parcel.md)(androidParcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) +inline fun [Parcel](-parcel.md)(androidParcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)): [Parcel](-parcel/index.md) -Creates a [com.chrynan.parcelable.core.Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) instance from the provided [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) class. +Creates a [com.chrynan.parcelable.core.Parcel](-parcel/index.md) instance from the provided [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) class. [common]\ expect fun [Parcel](-parcel.md)(): [Parcel](-parcel/index.md) @@ -14,10 +14,10 @@ Creates an empty [Parcel](-parcel/index.md) instance. [android, js, jvm, native, wasmJs]\ [android, js, jvm, native, wasmJs]\ -actual fun [Parcel](-parcel.md)(): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) +actual fun [Parcel](-parcel.md)(): [Parcel](-parcel/index.md) [android, js, jvm, native, wasmJs]\ -actual fun [Parcel](-parcel.md)(data: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) +actual fun [Parcel](-parcel.md)(data: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [Parcel](-parcel/index.md) [common]\ expect fun [Parcel](-parcel.md)(data: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [Parcel](-parcel/index.md) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md index 1f664f7..a59cca9 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md @@ -23,6 +23,16 @@ Note that this is based off of the Android Parcel component. | [AndroidParcel](../-android-parcel/index.md#-638012278%2FMain%2F1557879601) | | [ByteArrayParcel](../-byte-array-parcel/index.md) | +## Properties + +| Name | Summary | +|---|---| +| [dataBufferCapacity](data-buffer-capacity.md) | [common]
abstract val [dataBufferCapacity](data-buffer-capacity.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of space available in this parcel. This should always be greater than or equal to [dataSize](data-size.md). There may be more space available ([dataBufferCapacity](data-buffer-capacity.md)) in the underlying data buffer than there is data available ([dataSize](data-size.md)). The difference between [dataBufferCapacity](data-buffer-capacity.md) and [dataSize](data-size.md) indicates the amount of room remaining in the underlying data buffer until more space needs to be allocated. | +| [dataPosition](data-position.md) | [common]
abstract val [dataPosition](data-position.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The current index position in the data buffer. Should never be more than [dataSize](data-size.md). | +| [dataRemaining](data-remaining.md) | [common]
open val [dataRemaining](data-remaining.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The remaining amount of data to be read ([dataSize](data-size.md) - [dataPosition](data-position.md)). | +| [dataSize](data-size.md) | [common]
abstract val [dataSize](data-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of data contained in this parcel. | +| [isRecycled](is-recycled.md) | [common]
abstract val [isRecycled](is-recycled.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
Determines whether this [Parcel](index.md)s [recycle](recycle.md) function has been called already. A parcel object should not be used after it is recycled. | + ## Functions | Name | Summary | @@ -49,13 +59,3 @@ Note that this is based off of the Android Parcel component. | [writeLong](../-output-parcel/write-long.md) | [common]
abstract fun [writeLong](../-output-parcel/write-long.md)(value: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))
Writes the [Long](../-output-parcel/write-long.md) to the Parcel at the current data position. | | [writeShort](../-output-parcel/write-short.md) | [common]
abstract fun [writeShort](../-output-parcel/write-short.md)(value: [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html))
Writes the [Short](../-output-parcel/write-short.md) to the Parcel at the current data position. | | [writeString](../-output-parcel/write-string.md) | [common]
abstract fun [writeString](../-output-parcel/write-string.md)(value: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))
Writes the [String](../-output-parcel/write-string.md) to the Parcel at the current data position. | - -## Properties - -| Name | Summary | -|---|---| -| [dataBufferCapacity](data-buffer-capacity.md) | [common]
abstract val [dataBufferCapacity](data-buffer-capacity.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of space available in this parcel. This should always be greater than or equal to [dataSize](data-size.md). There may be more space available ([dataBufferCapacity](data-buffer-capacity.md)) in the underlying data buffer than there is data available ([dataSize](data-size.md)). The difference between [dataBufferCapacity](data-buffer-capacity.md) and [dataSize](data-size.md) indicates the amount of room remaining in the underlying data buffer until more space needs to be allocated. | -| [dataPosition](data-position.md) | [common]
abstract val [dataPosition](data-position.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The current index position in the data buffer. Should never be more than [dataSize](data-size.md). | -| [dataRemaining](data-remaining.md) | [common]
open val [dataRemaining](data-remaining.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The remaining amount of data to be read ([dataSize](data-size.md) - [dataPosition](data-position.md)). | -| [dataSize](data-size.md) | [common]
abstract val [dataSize](data-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of data contained in this parcel. | -| [isRecycled](is-recycled.md) | [common]
abstract val [isRecycled](is-recycled.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
Determines whether this [Parcel](index.md)s [recycle](recycle.md) function has been called already. A parcel object should not be used after it is recycled. | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/index.md index 657c0f2..4cd1915 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/index.md @@ -9,27 +9,27 @@ A custom [Parcelable](../index.md) implementation using the provided [configurat Note that instances of this class are created using the [Parcelable](../index.md) function. +## Properties + +| Name | Summary | +|---|---| +| [serializersModule](../serializers-module.md) | [common]
open override val [serializersModule](../serializers-module.md): SerializersModule | + ## Functions | Name | Summary | |---|---| -| [decodeFromBundle](../../decode-from-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) of [kClass](../../decode-from-bundle.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle.md)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](../../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) of [deserializer](../../decode-from-bundle.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or | -| [decodeFromBundleOrNull](../../decode-from-bundle-or-null.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundleOrNull](../../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle-or-null.md)?
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundleOrNull](../../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle-or-null.md)? | +| [decodeFromBundle](../../decode-from-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](../serializers-module.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) of [kClass](../../decode-from-bundle.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle.md)> [Parcelable](../index.md).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](../../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) of [deserializer](../../decode-from-bundle.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or | +| [decodeFromBundleOrNull](../../decode-from-bundle-or-null.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[decodeFromBundleOrNull](../../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle-or-null.md)?
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[decodeFromBundleOrNull](../../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle-or-null.md)? | | [decodeFromByteArray](../decode-from-byte-array.md) | [common]
open override fun <[T](../decode-from-byte-array.md)> [decodeFromByteArray](../decode-from-byte-array.md)(deserializer: DeserializationStrategy<[T](../decode-from-byte-array.md)>, bytes: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [T](../decode-from-byte-array.md) | -| [decodeFromIntent](../../decode-from-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-intent.md)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../../decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../../decode-from-intent.md)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](../../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)? | +| [decodeFromIntent](../../decode-from-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-intent.md)> [Parcelable](../index.md).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../../decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../../decode-from-intent.md)> [Parcelable](../index.md).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](../../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)? | | [decodeFromParcel](../decode-from-parcel.md) | [common]
fun <[T](../decode-from-parcel.md)> [decodeFromParcel](../decode-from-parcel.md)(parcel: [Parcel](../../-parcel/index.md), deserializer: DeserializationStrategy<[T](../decode-from-parcel.md)>): [T](../decode-from-parcel.md)
Decodes the value of [T](../decode-from-parcel.md) from the provided [parcel](../decode-from-parcel.md) using the provided [deserializer](../decode-from-parcel.md). | -| [decodeFromParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-parcel.md)> [Parcelable](../index.md).[decodeFromParcel](../../decode-from-parcel.md)(parcel: [Parcel](../../-parcel/index.md)): [T](../../decode-from-parcel.md)
Decodes the value of [T](../../decode-from-parcel.md) from the provided [parcel](../../decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T](../../[android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromParcel](../../[android]decode-from-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[android]decode-from-parcel.md)>): [T](../../[android]decode-from-parcel.md)
Decodes the value of [T](../../[android]decode-from-parcel.md) from the provided [parcel](../../[android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass](../../[android]decode-from-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../../[jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F1959883941).[decodeFromParcel](../../[jvm]decode-from-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[jvm]decode-from-parcel.md)>): [T](../../[jvm]decode-from-parcel.md)
Decodes the value of [T](../../[jvm]decode-from-parcel.md) from the provided [parcel](../../[jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass](../../[jvm]decode-from-parcel.md). | -| [encodeToBundle](../../encode-to-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-bundle.md)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../../encode-to-bundle.md)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md), serializer: SerializationStrategy<[T](../../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of [serializer](../../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../../encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of [kClass](../../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. | +| [decodeFromParcel](../../decode-from-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-parcel.md)> [Parcelable](../index.md).[decodeFromParcel](../../decode-from-parcel.md)(parcel: [Parcel](../../-parcel/index.md)): [T](../../decode-from-parcel.md)
Decodes the value of [T](../../decode-from-parcel.md) from the provided [parcel](../../decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T](../../[android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[decodeFromParcel](../../[android]decode-from-parcel.md)(parcel: [Parcel](../../-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[android]decode-from-parcel.md)>): [T](../../[android]decode-from-parcel.md)
Decodes the value of [T](../../[android]decode-from-parcel.md) from the provided [parcel](../../[android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../serializers-module.md) from the provided [kClass](../../[android]decode-from-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../../[jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[decodeFromParcel](../../[jvm]decode-from-parcel.md)(parcel: [Parcel](../../-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[jvm]decode-from-parcel.md)>): [T](../../[jvm]decode-from-parcel.md)
Decodes the value of [T](../../[jvm]decode-from-parcel.md) from the provided [parcel](../../[jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../serializers-module.md) from the provided [kClass](../../[jvm]decode-from-parcel.md). | +| [encodeToBundle](../../encode-to-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-bundle.md)> [Parcelable](../index.md).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](../serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../../encode-to-bundle.md)> [Parcelable](../index.md).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md), serializer: SerializationStrategy<[T](../../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of [serializer](../../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../../encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of [kClass](../../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. | | [encodeToByteArray](../encode-to-byte-array.md) | [common]
open override fun <[T](../encode-to-byte-array.md)> [encodeToByteArray](../encode-to-byte-array.md)(serializer: SerializationStrategy<[T](../encode-to-byte-array.md)>, value: [T](../encode-to-byte-array.md)): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) | -| [encodeToIntent](../../encode-to-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-intent.md)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../../encode-to-intent.md)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), serializer: SerializationStrategy<[T](../../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../../encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | +| [encodeToIntent](../../encode-to-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-intent.md)> [Parcelable](../index.md).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../../encode-to-intent.md)> [Parcelable](../index.md).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), serializer: SerializationStrategy<[T](../../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../../encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | | [encodeToParcel](../encode-to-parcel.md) | [common]
fun <[T](../encode-to-parcel.md)> [encodeToParcel](../encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md) = Parcel(), serializer: SerializationStrategy<[T](../encode-to-parcel.md)>, value: [T](../encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../encode-to-parcel.md) to the provided [parcel](../encode-to-parcel.md) using the provided [serializer](../encode-to-parcel.md). | -| [encodeToParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-parcel.md)> [Parcelable](../index.md).[encodeToParcel](../../encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md) = Parcel(), value: [T](../../encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../../encode-to-parcel.md) to the provided [parcel](../../encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T](../../[android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[encodeToParcel](../../[android]encode-to-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[android]encode-to-parcel.md)>, value: [T](../../[android]encode-to-parcel.md)): [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value](../../[android]encode-to-parcel.md) to the provided [parcel](../../[android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass](../../[android]encode-to-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../../[jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F1959883941).[encodeToParcel](../../[jvm]encode-to-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[jvm]encode-to-parcel.md)>, value: [T](../../[jvm]encode-to-parcel.md)): [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value](../../[jvm]encode-to-parcel.md) to the provided [parcel](../../[jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass](../../[jvm]encode-to-parcel.md). | +| [encodeToParcel](../../encode-to-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-parcel.md)> [Parcelable](../index.md).[encodeToParcel](../../encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md) = Parcel(), value: [T](../../encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../../encode-to-parcel.md) to the provided [parcel](../../encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T](../../[android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[encodeToParcel](../../[android]encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[android]encode-to-parcel.md)>, value: [T](../../[android]encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../../[android]encode-to-parcel.md) to the provided [parcel](../../[android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../serializers-module.md) using the provided [kClass](../../[android]encode-to-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../../[jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[encodeToParcel](../../[jvm]encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[jvm]encode-to-parcel.md)>, value: [T](../../[jvm]encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../../[jvm]encode-to-parcel.md) to the provided [parcel](../../[jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../serializers-module.md) using the provided [kClass](../../[jvm]encode-to-parcel.md). | | [equals](equals.md) | [common]
open operator override fun [equals](equals.md)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [hashCode](hash-code.md) | [common]
open override fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [toString](to-string.md) | [common]
open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | - -## Properties - -| Name | Summary | -|---|---| -| [serializersModule](../serializers-module.md) | [common]
open override val [serializersModule](../serializers-module.md): SerializersModule | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-default/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-default/index.md index 389c134..196e4db 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-default/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-default/index.md @@ -7,24 +7,24 @@ object [Default](index.md) : [Parcelable](../index.md) The default [Parcelable](../index.md) implementation using the default [ParcelableConfiguration](../../-parcelable-configuration/index.md) values. This class can be used when no custom configuration is needed. +## Properties + +| Name | Summary | +|---|---| +| [serializersModule](../serializers-module.md) | [common]
open override val [serializersModule](../serializers-module.md): SerializersModule | + ## Functions | Name | Summary | |---|---| -| [decodeFromBundle](../../decode-from-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) of [kClass](../../decode-from-bundle.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle.md)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](../../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) of [deserializer](../../decode-from-bundle.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or | -| [decodeFromBundleOrNull](../../decode-from-bundle-or-null.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundleOrNull](../../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle-or-null.md)?
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundleOrNull](../../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle-or-null.md)? | +| [decodeFromBundle](../../decode-from-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](../serializers-module.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) of [kClass](../../decode-from-bundle.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle.md)> [Parcelable](../index.md).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](../../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) of [deserializer](../../decode-from-bundle.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or | +| [decodeFromBundleOrNull](../../decode-from-bundle-or-null.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[decodeFromBundleOrNull](../../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle-or-null.md)?
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[decodeFromBundleOrNull](../../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle-or-null.md)? | | [decodeFromByteArray](../decode-from-byte-array.md) | [common]
open override fun <[T](../decode-from-byte-array.md)> [decodeFromByteArray](../decode-from-byte-array.md)(deserializer: DeserializationStrategy<[T](../decode-from-byte-array.md)>, bytes: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [T](../decode-from-byte-array.md) | -| [decodeFromIntent](../../decode-from-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-intent.md)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../../decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../../decode-from-intent.md)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](../../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)? | +| [decodeFromIntent](../../decode-from-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-intent.md)> [Parcelable](../index.md).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../../decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../../decode-from-intent.md)> [Parcelable](../index.md).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](../../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)? | | [decodeFromParcel](../decode-from-parcel.md) | [common]
fun <[T](../decode-from-parcel.md)> [decodeFromParcel](../decode-from-parcel.md)(parcel: [Parcel](../../-parcel/index.md), deserializer: DeserializationStrategy<[T](../decode-from-parcel.md)>): [T](../decode-from-parcel.md)
Decodes the value of [T](../decode-from-parcel.md) from the provided [parcel](../decode-from-parcel.md) using the provided [deserializer](../decode-from-parcel.md). | -| [decodeFromParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-parcel.md)> [Parcelable](../index.md).[decodeFromParcel](../../decode-from-parcel.md)(parcel: [Parcel](../../-parcel/index.md)): [T](../../decode-from-parcel.md)
Decodes the value of [T](../../decode-from-parcel.md) from the provided [parcel](../../decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T](../../[android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[decodeFromParcel](../../[android]decode-from-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[android]decode-from-parcel.md)>): [T](../../[android]decode-from-parcel.md)
Decodes the value of [T](../../[android]decode-from-parcel.md) from the provided [parcel](../../[android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass](../../[android]decode-from-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../../[jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F1959883941).[decodeFromParcel](../../[jvm]decode-from-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[jvm]decode-from-parcel.md)>): [T](../../[jvm]decode-from-parcel.md)
Decodes the value of [T](../../[jvm]decode-from-parcel.md) from the provided [parcel](../../[jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass](../../[jvm]decode-from-parcel.md). | -| [encodeToBundle](../../encode-to-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-bundle.md)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../../encode-to-bundle.md)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md), serializer: SerializationStrategy<[T](../../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of [serializer](../../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../../encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of [kClass](../../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. | +| [decodeFromParcel](../../decode-from-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-parcel.md)> [Parcelable](../index.md).[decodeFromParcel](../../decode-from-parcel.md)(parcel: [Parcel](../../-parcel/index.md)): [T](../../decode-from-parcel.md)
Decodes the value of [T](../../decode-from-parcel.md) from the provided [parcel](../../decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T](../../[android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[decodeFromParcel](../../[android]decode-from-parcel.md)(parcel: [Parcel](../../-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[android]decode-from-parcel.md)>): [T](../../[android]decode-from-parcel.md)
Decodes the value of [T](../../[android]decode-from-parcel.md) from the provided [parcel](../../[android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../serializers-module.md) from the provided [kClass](../../[android]decode-from-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../../[jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[decodeFromParcel](../../[jvm]decode-from-parcel.md)(parcel: [Parcel](../../-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[jvm]decode-from-parcel.md)>): [T](../../[jvm]decode-from-parcel.md)
Decodes the value of [T](../../[jvm]decode-from-parcel.md) from the provided [parcel](../../[jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../serializers-module.md) from the provided [kClass](../../[jvm]decode-from-parcel.md). | +| [encodeToBundle](../../encode-to-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-bundle.md)> [Parcelable](../index.md).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](../serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../../encode-to-bundle.md)> [Parcelable](../index.md).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md), serializer: SerializationStrategy<[T](../../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of [serializer](../../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../../encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of [kClass](../../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. | | [encodeToByteArray](../encode-to-byte-array.md) | [common]
open override fun <[T](../encode-to-byte-array.md)> [encodeToByteArray](../encode-to-byte-array.md)(serializer: SerializationStrategy<[T](../encode-to-byte-array.md)>, value: [T](../encode-to-byte-array.md)): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) | -| [encodeToIntent](../../encode-to-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-intent.md)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../../encode-to-intent.md)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), serializer: SerializationStrategy<[T](../../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../../encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | +| [encodeToIntent](../../encode-to-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-intent.md)> [Parcelable](../index.md).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../../encode-to-intent.md)> [Parcelable](../index.md).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), serializer: SerializationStrategy<[T](../../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../../encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | | [encodeToParcel](../encode-to-parcel.md) | [common]
fun <[T](../encode-to-parcel.md)> [encodeToParcel](../encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md) = Parcel(), serializer: SerializationStrategy<[T](../encode-to-parcel.md)>, value: [T](../encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../encode-to-parcel.md) to the provided [parcel](../encode-to-parcel.md) using the provided [serializer](../encode-to-parcel.md). | -| [encodeToParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-parcel.md)> [Parcelable](../index.md).[encodeToParcel](../../encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md) = Parcel(), value: [T](../../encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../../encode-to-parcel.md) to the provided [parcel](../../encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T](../../[android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F-1462739831).[encodeToParcel](../../[android]encode-to-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[android]encode-to-parcel.md)>, value: [T](../../[android]encode-to-parcel.md)): [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value](../../[android]encode-to-parcel.md) to the provided [parcel](../../[android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass](../../[android]encode-to-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../../[jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FMain%2F1959883941).[encodeToParcel](../../[jvm]encode-to-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[jvm]encode-to-parcel.md)>, value: [T](../../[jvm]encode-to-parcel.md)): [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value](../../[jvm]encode-to-parcel.md) to the provided [parcel](../../[jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass](../../[jvm]encode-to-parcel.md). | - -## Properties - -| Name | Summary | -|---|---| -| [serializersModule](../serializers-module.md) | [common]
open override val [serializersModule](../serializers-module.md): SerializersModule | +| [encodeToParcel](../../encode-to-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-parcel.md)> [Parcelable](../index.md).[encodeToParcel](../../encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md) = Parcel(), value: [T](../../encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../../encode-to-parcel.md) to the provided [parcel](../../encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T](../../[android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[encodeToParcel](../../[android]encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[android]encode-to-parcel.md)>, value: [T](../../[android]encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../../[android]encode-to-parcel.md) to the provided [parcel](../../[android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../serializers-module.md) using the provided [kClass](../../[android]encode-to-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../../[jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md).[encodeToParcel](../../[jvm]encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[jvm]encode-to-parcel.md)>, value: [T](../../[jvm]encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../../[jvm]encode-to-parcel.md) to the provided [parcel](../../[jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../serializers-module.md) using the provided [kClass](../../[jvm]encode-to-parcel.md). | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md index 1d4d0cd..eb83730 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md @@ -30,24 +30,24 @@ Note that this is not to be confused with the Android Parcelable interface. Howe | [Custom](-custom/index.md) | [common]
class [Custom](-custom/index.md) : [Parcelable](index.md)
A custom [Parcelable](index.md) implementation using the provided [configuration](../../../../parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/configuration.md) values. This class can be used when custom configuration is needed. | | [Default](-default/index.md) | [common]
object [Default](-default/index.md) : [Parcelable](index.md)
The default [Parcelable](index.md) implementation using the default [ParcelableConfiguration](../-parcelable-configuration/index.md) values. This class can be used when no custom configuration is needed. | +## Properties + +| Name | Summary | +|---|---| +| [serializersModule](serializers-module.md) | [common]
open override val [serializersModule](serializers-module.md): SerializersModule | + ## Functions | Name | Summary | |---|---| -| [decodeFromBundle](../decode-from-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle.md)
Retrieves a value of [T](../decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [bundle](../decode-from-bundle.md) and [flags](../decode-from-bundle.md), or null if the [bundle](../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle.md)
Retrieves a value of [T](../decode-from-bundle.md) of [kClass](../decode-from-bundle.md) from the provided [bundle](../decode-from-bundle.md) and [flags](../decode-from-bundle.md), or null if the [bundle](../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../decode-from-bundle.md)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle.md)
Retrieves a value of [T](../decode-from-bundle.md) of [deserializer](../decode-from-bundle.md) from the provided [bundle](../decode-from-bundle.md) and [flags](../decode-from-bundle.md), or null if the [bundle](../decode-from-bundle.md) is empty or | -| [decodeFromBundleOrNull](../decode-from-bundle-or-null.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundleOrNull](../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle-or-null.md)?
@ExperimentalSerializationApi
fun <[T](../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundleOrNull](../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle-or-null.md)? | +| [decodeFromBundle](../decode-from-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md).[decodeFromBundle](../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle.md)
Retrieves a value of [T](../decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](serializers-module.md) from the provided [bundle](../decode-from-bundle.md) and [flags](../decode-from-bundle.md), or null if the [bundle](../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md).[decodeFromBundle](../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle.md)
Retrieves a value of [T](../decode-from-bundle.md) of [kClass](../decode-from-bundle.md) from the provided [bundle](../decode-from-bundle.md) and [flags](../decode-from-bundle.md), or null if the [bundle](../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../decode-from-bundle.md)> [Parcelable](index.md).[decodeFromBundle](../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle.md)
Retrieves a value of [T](../decode-from-bundle.md) of [deserializer](../decode-from-bundle.md) from the provided [bundle](../decode-from-bundle.md) and [flags](../decode-from-bundle.md), or null if the [bundle](../decode-from-bundle.md) is empty or | +| [decodeFromBundleOrNull](../decode-from-bundle-or-null.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md).[decodeFromBundleOrNull](../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle-or-null.md)?
@ExperimentalSerializationApi
fun <[T](../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md).[decodeFromBundleOrNull](../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle-or-null.md)? | | [decodeFromByteArray](decode-from-byte-array.md) | [common]
open override fun <[T](decode-from-byte-array.md)> [decodeFromByteArray](decode-from-byte-array.md)(deserializer: DeserializationStrategy<[T](decode-from-byte-array.md)>, bytes: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [T](decode-from-byte-array.md) | -| [decodeFromIntent](../decode-from-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../decode-from-intent.md)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../decode-from-intent.md)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../decode-from-intent.md)? | +| [decodeFromIntent](../decode-from-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../decode-from-intent.md)> [Parcelable](index.md).[decodeFromIntent](../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md).[decodeFromIntent](../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../decode-from-intent.md)> [Parcelable](index.md).[decodeFromIntent](../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../decode-from-intent.md)? | | [decodeFromParcel](decode-from-parcel.md) | [common]
fun <[T](decode-from-parcel.md)> [decodeFromParcel](decode-from-parcel.md)(parcel: [Parcel](../-parcel/index.md), deserializer: DeserializationStrategy<[T](decode-from-parcel.md)>): [T](decode-from-parcel.md)
Decodes the value of [T](decode-from-parcel.md) from the provided [parcel](decode-from-parcel.md) using the provided [deserializer](decode-from-parcel.md). | -| [decodeFromParcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](../decode-from-parcel.md)> [Parcelable](index.md).[decodeFromParcel](../decode-from-parcel.md)(parcel: [Parcel](../-parcel/index.md)): [T](../decode-from-parcel.md)
Decodes the value of [T](../decode-from-parcel.md) from the provided [parcel](../decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T](../[android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[decodeFromParcel](../[android]decode-from-parcel.md)(parcel: [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../[android]decode-from-parcel.md)>): [T](../[android]decode-from-parcel.md)
Decodes the value of [T](../[android]decode-from-parcel.md) from the provided [parcel](../[android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass](../[android]decode-from-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../[jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FMain%2F1959883941).[decodeFromParcel](../[jvm]decode-from-parcel.md)(parcel: [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../[jvm]decode-from-parcel.md)>): [T](../[jvm]decode-from-parcel.md)
Decodes the value of [T](../[jvm]decode-from-parcel.md) from the provided [parcel](../[jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass](../[jvm]decode-from-parcel.md). | -| [encodeToBundle](../encode-to-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../encode-to-bundle.md)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](../encode-to-bundle.md)(value: [T](../encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../encode-to-bundle.md)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](../encode-to-bundle.md)(value: [T](../encode-to-bundle.md), serializer: SerializationStrategy<[T](../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../encode-to-bundle.md) of [serializer](../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](../encode-to-bundle.md)(value: [T](../encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../encode-to-bundle.md) of [kClass](../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. | +| [decodeFromParcel](../decode-from-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](../decode-from-parcel.md)> [Parcelable](index.md).[decodeFromParcel](../decode-from-parcel.md)(parcel: [Parcel](../-parcel/index.md)): [T](../decode-from-parcel.md)
Decodes the value of [T](../decode-from-parcel.md) from the provided [parcel](../decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T](../[android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md).[decodeFromParcel](../[android]decode-from-parcel.md)(parcel: [Parcel](../-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../[android]decode-from-parcel.md)>): [T](../[android]decode-from-parcel.md)
Decodes the value of [T](../[android]decode-from-parcel.md) from the provided [parcel](../[android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](serializers-module.md) from the provided [kClass](../[android]decode-from-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../[jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md).[decodeFromParcel](../[jvm]decode-from-parcel.md)(parcel: [Parcel](../-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../[jvm]decode-from-parcel.md)>): [T](../[jvm]decode-from-parcel.md)
Decodes the value of [T](../[jvm]decode-from-parcel.md) from the provided [parcel](../[jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](serializers-module.md) from the provided [kClass](../[jvm]decode-from-parcel.md). | +| [encodeToBundle](../encode-to-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../encode-to-bundle.md)> [Parcelable](index.md).[encodeToBundle](../encode-to-bundle.md)(value: [T](../encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../encode-to-bundle.md)> [Parcelable](index.md).[encodeToBundle](../encode-to-bundle.md)(value: [T](../encode-to-bundle.md), serializer: SerializationStrategy<[T](../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../encode-to-bundle.md) of [serializer](../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md).[encodeToBundle](../encode-to-bundle.md)(value: [T](../encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../encode-to-bundle.md) of [kClass](../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. | | [encodeToByteArray](encode-to-byte-array.md) | [common]
open override fun <[T](encode-to-byte-array.md)> [encodeToByteArray](encode-to-byte-array.md)(serializer: SerializationStrategy<[T](encode-to-byte-array.md)>, value: [T](encode-to-byte-array.md)): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) | -| [encodeToIntent](../encode-to-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../encode-to-intent.md)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../encode-to-intent.md)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../encode-to-intent.md), serializer: SerializationStrategy<[T](../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | +| [encodeToIntent](../encode-to-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](../encode-to-intent.md)> [Parcelable](index.md).[encodeToIntent](../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../encode-to-intent.md)> [Parcelable](index.md).[encodeToIntent](../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../encode-to-intent.md), serializer: SerializationStrategy<[T](../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md).[encodeToIntent](../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | | [encodeToParcel](encode-to-parcel.md) | [common]
fun <[T](encode-to-parcel.md)> [encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](../-parcel/index.md) = Parcel(), serializer: SerializationStrategy<[T](encode-to-parcel.md)>, value: [T](encode-to-parcel.md)): [Parcel](../-parcel/index.md)
Encodes the provided [value](encode-to-parcel.md) to the provided [parcel](encode-to-parcel.md) using the provided [serializer](encode-to-parcel.md). | -| [encodeToParcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](../encode-to-parcel.md)> [Parcelable](index.md).[encodeToParcel](../encode-to-parcel.md)(parcel: [Parcel](../-parcel/index.md) = Parcel(), value: [T](../encode-to-parcel.md)): [Parcel](../-parcel/index.md)
Encodes the provided [value](../encode-to-parcel.md) to the provided [parcel](../encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T](../[android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FMain%2F-1462739831).[encodeToParcel](../[android]encode-to-parcel.md)(parcel: [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../[android]encode-to-parcel.md)>, value: [T](../[android]encode-to-parcel.md)): [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value](../[android]encode-to-parcel.md) to the provided [parcel](../[android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass](../[android]encode-to-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../[jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FMain%2F1959883941).[encodeToParcel](../[jvm]encode-to-parcel.md)(parcel: [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../[jvm]encode-to-parcel.md)>, value: [T](../[jvm]encode-to-parcel.md)): [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value](../[jvm]encode-to-parcel.md) to the provided [parcel](../[jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass](../[jvm]encode-to-parcel.md). | - -## Properties - -| Name | Summary | -|---|---| -| [serializersModule](serializers-module.md) | [common]
open override val [serializersModule](serializers-module.md): SerializersModule | +| [encodeToParcel](../encode-to-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](../encode-to-parcel.md)> [Parcelable](index.md).[encodeToParcel](../encode-to-parcel.md)(parcel: [Parcel](../-parcel/index.md) = Parcel(), value: [T](../encode-to-parcel.md)): [Parcel](../-parcel/index.md)
Encodes the provided [value](../encode-to-parcel.md) to the provided [parcel](../encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T](../[android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md).[encodeToParcel](../[android]encode-to-parcel.md)(parcel: [Parcel](../-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../[android]encode-to-parcel.md)>, value: [T](../[android]encode-to-parcel.md)): [Parcel](../-parcel/index.md)
Encodes the provided [value](../[android]encode-to-parcel.md) to the provided [parcel](../[android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](serializers-module.md) using the provided [kClass](../[android]encode-to-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../[jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md).[encodeToParcel](../[jvm]encode-to-parcel.md)(parcel: [Parcel](../-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../[jvm]encode-to-parcel.md)>, value: [T](../[jvm]encode-to-parcel.md)): [Parcel](../-parcel/index.md)
Encodes the provided [value](../[jvm]encode-to-parcel.md) to the provided [parcel](../[jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](serializers-module.md) using the provided [kClass](../[jvm]encode-to-parcel.md). | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]decode-from-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]decode-from-parcel.md index 5e7bf0f..3d0f1cf 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]decode-from-parcel.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]decode-from-parcel.md @@ -6,11 +6,11 @@ @ExperimentalSerializationApi -fun <[T]([android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromParcel]([android]decode-from-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([android]decode-from-parcel.md)>): [T]([android]decode-from-parcel.md) +fun <[T]([android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[decodeFromParcel]([android]decode-from-parcel.md)(parcel: [Parcel](-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([android]decode-from-parcel.md)>): [T]([android]decode-from-parcel.md) -Decodes the value of [T]([android]decode-from-parcel.md) from the provided [parcel]([android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass]([android]decode-from-parcel.md). +Decodes the value of [T]([android]decode-from-parcel.md) from the provided [parcel]([android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md) from the provided [kClass]([android]decode-from-parcel.md). -Note that the provided [parcel]([android]decode-from-parcel.md) must already be set to the appropriate [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to decode. +Note that the provided [parcel]([android]decode-from-parcel.md) must already be set to the appropriate [Parcel.dataPosition](-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to decode. #### Return @@ -22,4 +22,4 @@ android | | | |---|---| -| parcel | The [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) to decode the returned value from. The [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) must be set correctly. | +| parcel | The [Parcel](-parcel/index.md) to decode the returned value from. The [Parcel.dataPosition](-parcel/data-position.md) must be set correctly. | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]encode-to-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]encode-to-parcel.md index 1c98ae9..a7a6162 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]encode-to-parcel.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]encode-to-parcel.md @@ -6,11 +6,11 @@ @ExperimentalSerializationApi -fun <[T]([android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[encodeToParcel]([android]encode-to-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([android]encode-to-parcel.md)>, value: [T]([android]encode-to-parcel.md)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) +fun <[T]([android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[encodeToParcel]([android]encode-to-parcel.md)(parcel: [Parcel](-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([android]encode-to-parcel.md)>, value: [T]([android]encode-to-parcel.md)): [Parcel](-parcel/index.md) -Encodes the provided [value]([android]encode-to-parcel.md) to the provided [parcel]([android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass]([android]encode-to-parcel.md). +Encodes the provided [value]([android]encode-to-parcel.md) to the provided [parcel]([android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md) using the provided [kClass]([android]encode-to-parcel.md). -Note that the provided [parcel]([android]encode-to-parcel.md) must already be set to the appropriate [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to encode. +Note that the provided [parcel]([android]encode-to-parcel.md) must already be set to the appropriate [Parcel.dataPosition](-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to encode. #### Return @@ -22,5 +22,5 @@ android | | | |---|---| -| parcel | The [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) to encode the [value]([android]encode-to-parcel.md) to. Defaults to an empty [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md). The [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) must be set correctly. | +| parcel | The [Parcel](-parcel/index.md) to encode the [value]([android]encode-to-parcel.md) to. Defaults to an empty [Parcel](-parcel/index.md). The [Parcel.dataPosition](-parcel/data-position.md) must be set correctly. | | value | The value that should be encoded into the [parcel]([android]encode-to-parcel.md). | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]decode-from-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]decode-from-parcel.md index 609ba02..b0eca33 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]decode-from-parcel.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]decode-from-parcel.md @@ -6,11 +6,11 @@ @ExperimentalSerializationApi -fun <[T]([jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F1959883941).[decodeFromParcel]([jvm]decode-from-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([jvm]decode-from-parcel.md)>): [T]([jvm]decode-from-parcel.md) +fun <[T]([jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[decodeFromParcel]([jvm]decode-from-parcel.md)(parcel: [Parcel](-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([jvm]decode-from-parcel.md)>): [T]([jvm]decode-from-parcel.md) -Decodes the value of [T]([jvm]decode-from-parcel.md) from the provided [parcel]([jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass]([jvm]decode-from-parcel.md). +Decodes the value of [T]([jvm]decode-from-parcel.md) from the provided [parcel]([jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md) from the provided [kClass]([jvm]decode-from-parcel.md). -Note that the provided [parcel]([jvm]decode-from-parcel.md) must already be set to the appropriate [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to decode. +Note that the provided [parcel]([jvm]decode-from-parcel.md) must already be set to the appropriate [Parcel.dataPosition](-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to decode. #### Return @@ -22,4 +22,4 @@ jvm | | | |---|---| -| parcel | The [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) to decode the returned value from. The [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) must be set correctly. | +| parcel | The [Parcel](-parcel/index.md) to decode the returned value from. The [Parcel.dataPosition](-parcel/data-position.md) must be set correctly. | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]encode-to-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]encode-to-parcel.md index aba820a..c96d220 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]encode-to-parcel.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]encode-to-parcel.md @@ -6,11 +6,11 @@ @ExperimentalSerializationApi -fun <[T]([jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F1959883941).[encodeToParcel]([jvm]encode-to-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([jvm]encode-to-parcel.md)>, value: [T]([jvm]encode-to-parcel.md)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) +fun <[T]([jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[encodeToParcel]([jvm]encode-to-parcel.md)(parcel: [Parcel](-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([jvm]encode-to-parcel.md)>, value: [T]([jvm]encode-to-parcel.md)): [Parcel](-parcel/index.md) -Encodes the provided [value]([jvm]encode-to-parcel.md) to the provided [parcel]([jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass]([jvm]encode-to-parcel.md). +Encodes the provided [value]([jvm]encode-to-parcel.md) to the provided [parcel]([jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md) using the provided [kClass]([jvm]encode-to-parcel.md). -Note that the provided [parcel]([jvm]encode-to-parcel.md) must already be set to the appropriate [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to encode. +Note that the provided [parcel]([jvm]encode-to-parcel.md) must already be set to the appropriate [Parcel.dataPosition](-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to encode. #### Return @@ -22,5 +22,5 @@ jvm | | | |---|---| -| parcel | The [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) to encode the [value]([jvm]encode-to-parcel.md) to. Defaults to an empty [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md). The [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) must be set correctly. | +| parcel | The [Parcel](-parcel/index.md) to encode the [value]([jvm]encode-to-parcel.md) to. Defaults to an empty [Parcel](-parcel/index.md). The [Parcel.dataPosition](-parcel/data-position.md) must be set correctly. | | value | The value that should be encoded into the [parcel]([jvm]encode-to-parcel.md). | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle-or-null.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle-or-null.md index 165caa1..7331c29 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle-or-null.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle-or-null.md @@ -6,8 +6,8 @@ @ExperimentalSerializationApi -fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)? +fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)? @ExperimentalSerializationApi -inline fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)? +inline fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)? diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md index 66ac169..71fbebd 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md @@ -6,7 +6,7 @@ @ExperimentalSerializationApi -fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md) +fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md) Retrieves a value of [T](decode-from-bundle.md) of [kClass](decode-from-bundle.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or @@ -14,7 +14,7 @@ Retrieves a value of [T](decode-from-bundle.md) of [kClass](decode-from-bundle.m @ExperimentalSerializationApi -fun <[T](decode-from-bundle.md)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md) +fun <[T](decode-from-bundle.md)> [Parcelable](-parcelable/index.md).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md) Retrieves a value of [T](decode-from-bundle.md) of [deserializer](decode-from-bundle.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or @@ -22,6 +22,6 @@ Retrieves a value of [T](decode-from-bundle.md) of [deserializer](decode-from-bu @ExperimentalSerializationApi -inline fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md) +inline fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md) -Retrieves a value of [T](decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or +Retrieves a value of [T](decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](-parcelable/serializers-module.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-intent.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-intent.md index a9aa257..6904bdd 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-intent.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-intent.md @@ -6,12 +6,12 @@ @ExperimentalSerializationApi -fun <[T](decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)? +fun <[T](decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)? @ExperimentalSerializationApi -fun <[T](decode-from-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)? +fun <[T](decode-from-intent.md)> [Parcelable](-parcelable/index.md).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)? @ExperimentalSerializationApi -inline fun <[T](decode-from-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)? +inline fun <[T](decode-from-intent.md)> [Parcelable](-parcelable/index.md).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)? diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md index b695b4e..8c582d2 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md @@ -6,7 +6,7 @@ @ExperimentalSerializationApi -fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) +fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) Writes the provided [value](encode-to-bundle.md) of [kClass](encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. @@ -14,7 +14,7 @@ Writes the provided [value](encode-to-bundle.md) of [kClass](encode-to-bundle.md @ExperimentalSerializationApi -fun <[T](encode-to-bundle.md)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), serializer: SerializationStrategy<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) +fun <[T](encode-to-bundle.md)> [Parcelable](-parcelable/index.md).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), serializer: SerializationStrategy<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) Writes the provided [value](encode-to-bundle.md) of [serializer](encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. @@ -22,6 +22,6 @@ Writes the provided [value](encode-to-bundle.md) of [serializer](encode-to-bundl @ExperimentalSerializationApi -inline fun <[T](encode-to-bundle.md)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) +inline fun <[T](encode-to-bundle.md)> [Parcelable](-parcelable/index.md).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) -Writes the provided [value](encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. +Writes the provided [value](encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](-parcelable/serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-intent.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-intent.md index f6ece8d..25013c2 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-intent.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-intent.md @@ -6,12 +6,12 @@ @ExperimentalSerializationApi -fun <[T](encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) +fun <[T](encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) @ExperimentalSerializationApi -fun <[T](encode-to-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), serializer: SerializationStrategy<[T](encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) +fun <[T](encode-to-intent.md)> [Parcelable](-parcelable/index.md).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), serializer: SerializationStrategy<[T](encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) @ExperimentalSerializationApi -inline fun <[T](encode-to-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) +inline fun <[T](encode-to-intent.md)> [Parcelable](-parcelable/index.md).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable-extra.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable-extra.md index 498818e..666e111 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable-extra.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable-extra.md @@ -6,12 +6,12 @@ @ExperimentalSerializationApi -fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](get-parcelable-extra.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [T](get-parcelable-extra.md)? +fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](get-parcelable-extra.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [T](get-parcelable-extra.md)? @ExperimentalSerializationApi -fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](get-parcelable-extra.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [T](get-parcelable-extra.md)? +fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](get-parcelable-extra.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [T](get-parcelable-extra.md)? @ExperimentalSerializationApi -inline fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [T](get-parcelable-extra.md)? +inline fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [T](get-parcelable-extra.md)? diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable.md index ad0b0a5..02218bc 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable.md @@ -6,12 +6,12 @@ @ExperimentalSerializationApi -fun <[T](get-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](get-parcelable.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [T](get-parcelable.md)? +fun <[T](get-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](get-parcelable.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [T](get-parcelable.md)? @ExperimentalSerializationApi -fun <[T](get-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](get-parcelable.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [T](get-parcelable.md)? +fun <[T](get-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](get-parcelable.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [T](get-parcelable.md)? @ExperimentalSerializationApi -inline fun <[T](get-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [T](get-parcelable.md)? +inline fun <[T](get-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [T](get-parcelable.md)? diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/index.md index ab1c6dc..e0ca948 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/index.md @@ -6,7 +6,7 @@ | Name | Summary | |---|---| -| [AndroidParcel](-android-parcel/index.md) | [android]
class [AndroidParcel](-android-parcel/index.md) : [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
An Android implementation of the [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) interface. This class wraps the provided [android.os.Parcel](../../../parcelable-core/com.chrynan.parcelable.core/-android-parcel/parcel.md) and delegates the reading and writing to it. | +| [AndroidParcel](-android-parcel/index.md) | [android]
class [AndroidParcel](-android-parcel/index.md) : [Parcel](-parcel/index.md)
An Android implementation of the [Parcel](-parcel/index.md) interface. This class wraps the provided [android.os.Parcel](../../../parcelable-core/com.chrynan.parcelable.core/-android-parcel/parcel.md) and delegates the reading and writing to it. | | [ByteArrayParcel](-byte-array-parcel/index.md) | [common]
class [ByteArrayParcel](-byte-array-parcel/index.md) : [Parcel](-parcel/index.md)
A [Parcel](-parcel/index.md) implementation that stores its underlying data into a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html). | | [InputParcel](-input-parcel/index.md) | [common]
interface [InputParcel](-input-parcel/index.md)
An interface that provides a way to read from a basic input source. This interface provides the reading functionality of the [Parcel](-parcel/index.md) interface. | | [InvalidParcelValueException](-invalid-parcel-value-exception/index.md) | [common]
class [InvalidParcelValueException](-invalid-parcel-value-exception/index.md)(message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : SerializationException
An exception that is thrown when an unexpected [Parcel](-parcel/index.md) value was retrieved or stored. | @@ -22,19 +22,19 @@ | Name | Summary | |---|---| -| [decodeFromBundle](decode-from-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
Retrieves a value of [T](decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
Retrieves a value of [T](decode-from-bundle.md) of [kClass](decode-from-bundle.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](decode-from-bundle.md)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
Retrieves a value of [T](decode-from-bundle.md) of [deserializer](decode-from-bundle.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or | -| [decodeFromBundleOrNull](decode-from-bundle-or-null.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)?
@ExperimentalSerializationApi
fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)? | -| [decodeFromIntent](decode-from-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](decode-from-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](decode-from-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)? | -| [decodeFromParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](decode-from-parcel.md)> [Parcelable](-parcelable/index.md).[decodeFromParcel](decode-from-parcel.md)(parcel: [Parcel](-parcel/index.md)): [T](decode-from-parcel.md)
Decodes the value of [T](decode-from-parcel.md) from the provided [parcel](decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T]([android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[decodeFromParcel]([android]decode-from-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([android]decode-from-parcel.md)>): [T]([android]decode-from-parcel.md)
Decodes the value of [T]([android]decode-from-parcel.md) from the provided [parcel]([android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass]([android]decode-from-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T]([jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F1959883941).[decodeFromParcel]([jvm]decode-from-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([jvm]decode-from-parcel.md)>): [T]([jvm]decode-from-parcel.md)
Decodes the value of [T]([jvm]decode-from-parcel.md) from the provided [parcel]([jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass]([jvm]decode-from-parcel.md). | -| [encodeToBundle](encode-to-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](encode-to-bundle.md)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](encode-to-bundle.md)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), serializer: SerializationStrategy<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](encode-to-bundle.md) of [serializer](encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](encode-to-bundle.md) of [kClass](encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. | -| [encodeToIntent](encode-to-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](encode-to-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](encode-to-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), serializer: SerializationStrategy<[T](encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | -| [encodeToParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](encode-to-parcel.md)> [Parcelable](-parcelable/index.md).[encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](-parcel/index.md) = Parcel(), value: [T](encode-to-parcel.md)): [Parcel](-parcel/index.md)
Encodes the provided [value](encode-to-parcel.md) to the provided [parcel](encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T]([android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831).[encodeToParcel]([android]encode-to-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([android]encode-to-parcel.md)>, value: [T]([android]encode-to-parcel.md)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value]([android]encode-to-parcel.md) to the provided [parcel]([android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass]([android]encode-to-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T]([jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FMain%2F1959883941).[encodeToParcel]([jvm]encode-to-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([jvm]encode-to-parcel.md)>, value: [T]([jvm]encode-to-parcel.md)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value]([jvm]encode-to-parcel.md) to the provided [parcel]([jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass]([jvm]encode-to-parcel.md). | -| [getParcelable](get-parcelable.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](get-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [T](get-parcelable.md)?
@ExperimentalSerializationApi
fun <[T](get-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](get-parcelable.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [T](get-parcelable.md)?
@ExperimentalSerializationApi
fun <[T](get-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](get-parcelable.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [T](get-parcelable.md)? | -| [getParcelableExtra](get-parcelable-extra.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [T](get-parcelable-extra.md)?
@ExperimentalSerializationApi
fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](get-parcelable-extra.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [T](get-parcelable-extra.md)?
@ExperimentalSerializationApi
fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](get-parcelable-extra.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [T](get-parcelable-extra.md)? | -| [Parcel](-parcel.md) | [common]
expect fun [Parcel](-parcel.md)(): [Parcel](-parcel/index.md)
Creates an empty [Parcel](-parcel/index.md) instance.
[android, js, jvm, native, wasmJs]
[android, js, jvm, native, wasmJs]
actual fun [Parcel](-parcel.md)(): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
[android, js, jvm, native, wasmJs]
actual fun [Parcel](-parcel.md)(data: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
[android]
inline fun [Parcel](-parcel.md)(androidParcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Creates a [com.chrynan.parcelable.core.Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) instance from the provided [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) class.
[common]
expect fun [Parcel](-parcel.md)(data: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [Parcel](-parcel/index.md)
Creates a [Parcel](-parcel/index.md) instance containing the provided [data](-parcel.md). | +| [decodeFromBundle](decode-from-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
Retrieves a value of [T](decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](-parcelable/serializers-module.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
Retrieves a value of [T](decode-from-bundle.md) of [kClass](decode-from-bundle.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](decode-from-bundle.md)> [Parcelable](-parcelable/index.md).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
Retrieves a value of [T](decode-from-bundle.md) of [deserializer](decode-from-bundle.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or | +| [decodeFromBundleOrNull](decode-from-bundle-or-null.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)?
@ExperimentalSerializationApi
fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)? | +| [decodeFromIntent](decode-from-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](decode-from-intent.md)> [Parcelable](-parcelable/index.md).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](decode-from-intent.md)> [Parcelable](-parcelable/index.md).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)? | +| [decodeFromParcel](decode-from-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](decode-from-parcel.md)> [Parcelable](-parcelable/index.md).[decodeFromParcel](decode-from-parcel.md)(parcel: [Parcel](-parcel/index.md)): [T](decode-from-parcel.md)
Decodes the value of [T](decode-from-parcel.md) from the provided [parcel](decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T]([android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[decodeFromParcel]([android]decode-from-parcel.md)(parcel: [Parcel](-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([android]decode-from-parcel.md)>): [T]([android]decode-from-parcel.md)
Decodes the value of [T]([android]decode-from-parcel.md) from the provided [parcel]([android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md) from the provided [kClass]([android]decode-from-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T]([jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[decodeFromParcel]([jvm]decode-from-parcel.md)(parcel: [Parcel](-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([jvm]decode-from-parcel.md)>): [T]([jvm]decode-from-parcel.md)
Decodes the value of [T]([jvm]decode-from-parcel.md) from the provided [parcel]([jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md) from the provided [kClass]([jvm]decode-from-parcel.md). | +| [encodeToBundle](encode-to-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](encode-to-bundle.md)> [Parcelable](-parcelable/index.md).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](-parcelable/serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](encode-to-bundle.md)> [Parcelable](-parcelable/index.md).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), serializer: SerializationStrategy<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](encode-to-bundle.md) of [serializer](encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](encode-to-bundle.md) of [kClass](encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. | +| [encodeToIntent](encode-to-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](encode-to-intent.md)> [Parcelable](-parcelable/index.md).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](encode-to-intent.md)> [Parcelable](-parcelable/index.md).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), serializer: SerializationStrategy<[T](encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | +| [encodeToParcel](encode-to-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](encode-to-parcel.md)> [Parcelable](-parcelable/index.md).[encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](-parcel/index.md) = Parcel(), value: [T](encode-to-parcel.md)): [Parcel](-parcel/index.md)
Encodes the provided [value](encode-to-parcel.md) to the provided [parcel](encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T]([android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[encodeToParcel]([android]encode-to-parcel.md)(parcel: [Parcel](-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([android]encode-to-parcel.md)>, value: [T]([android]encode-to-parcel.md)): [Parcel](-parcel/index.md)
Encodes the provided [value]([android]encode-to-parcel.md) to the provided [parcel]([android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md) using the provided [kClass]([android]encode-to-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T]([jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md).[encodeToParcel]([jvm]encode-to-parcel.md)(parcel: [Parcel](-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([jvm]encode-to-parcel.md)>, value: [T]([jvm]encode-to-parcel.md)): [Parcel](-parcel/index.md)
Encodes the provided [value]([jvm]encode-to-parcel.md) to the provided [parcel]([jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md) using the provided [kClass]([jvm]encode-to-parcel.md). | +| [getParcelable](get-parcelable.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](get-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [T](get-parcelable.md)?
@ExperimentalSerializationApi
fun <[T](get-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](get-parcelable.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [T](get-parcelable.md)?
@ExperimentalSerializationApi
fun <[T](get-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](get-parcelable.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [T](get-parcelable.md)? | +| [getParcelableExtra](get-parcelable-extra.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [T](get-parcelable-extra.md)?
@ExperimentalSerializationApi
fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](get-parcelable-extra.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [T](get-parcelable-extra.md)?
@ExperimentalSerializationApi
fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](get-parcelable-extra.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [T](get-parcelable-extra.md)? | +| [Parcel](-parcel.md) | [common]
expect fun [Parcel](-parcel.md)(): [Parcel](-parcel/index.md)
Creates an empty [Parcel](-parcel/index.md) instance.
[android, js, jvm, native, wasmJs]
[android, js, jvm, native, wasmJs]
actual fun [Parcel](-parcel.md)(): [Parcel](-parcel/index.md)
[android, js, jvm, native, wasmJs]
actual fun [Parcel](-parcel.md)(data: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [Parcel](-parcel/index.md)
[android]
inline fun [Parcel](-parcel.md)(androidParcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)): [Parcel](-parcel/index.md)
Creates a [com.chrynan.parcelable.core.Parcel](-parcel/index.md) instance from the provided [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) class.
[common]
expect fun [Parcel](-parcel.md)(data: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [Parcel](-parcel/index.md)
Creates a [Parcel](-parcel/index.md) instance containing the provided [data](-parcel.md). | | [Parcelable](-parcelable.md) | [common]
@ExperimentalSerializationApi
fun [Parcelable](-parcelable.md)(from: [Parcelable](-parcelable/index.md) = Parcelable.Default, builderAction: [ParcelableConfigurationBuilder](-parcelable-configuration-builder/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [Parcelable.Custom](-parcelable/-custom/index.md)
Creates a custom [Parcelable](-parcelable/index.md) implementation using the provided [from](-parcelable/index.md) as a base for the configuration and the provided [builderAction](-parcelable.md) function to override those configuration values. | -| [putExtra](put-extra.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](put-extra.md)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](put-extra.md)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), serializer: SerializationStrategy<[T](put-extra.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](put-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](put-extra.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | -| [putParcelable](put-parcelable.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](put-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default)
@ExperimentalSerializationApi
fun <[T](put-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), serializer: SerializationStrategy<[T](put-parcelable.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default)
@ExperimentalSerializationApi
fun <[T](put-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](put-parcelable.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default) | -| [readFromParcel](read-from-parcel.md) | [android]
fun [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[readFromParcel](read-from-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md))
Reads the Parcel contents into this Bundle, typically in order for it to be passed through an IBinder connection. Params: parcel – The parcel to overwrite this bundle from. | +| [putExtra](put-extra.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](put-extra.md)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](put-extra.md)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), serializer: SerializationStrategy<[T](put-extra.md)>, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](put-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](put-extra.md)>, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | +| [putParcelable](put-parcelable.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](put-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default)
@ExperimentalSerializationApi
fun <[T](put-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), serializer: SerializationStrategy<[T](put-parcelable.md)>, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default)
@ExperimentalSerializationApi
fun <[T](put-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](put-parcelable.md)>, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default) | +| [readFromParcel](read-from-parcel.md) | [android]
fun [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[readFromParcel](read-from-parcel.md)(parcel: [Parcel](-parcel/index.md))
Reads the Parcel contents into this Bundle, typically in order for it to be passed through an IBinder connection. Params: parcel – The parcel to overwrite this bundle from. | | [resetDataPosition](reset-data-position.md) | [common]
inline fun [Parcel](-parcel/index.md).[resetDataPosition](reset-data-position.md)()
A convenience function for calling the [Parcel.setDataPosition](-parcel/set-data-position.md) with an index value of zero. | -| [toParcel](to-parcel.md) | [android]
inline fun [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html).[toParcel](to-parcel.md)(): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Creates a [com.chrynan.parcelable.core.Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) instance from this [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) class. | +| [toParcel](to-parcel.md) | [android]
inline fun [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html).[toParcel](to-parcel.md)(): [Parcel](-parcel/index.md)
Creates a [com.chrynan.parcelable.core.Parcel](-parcel/index.md) instance from this [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) class. | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-extra.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-extra.md index 3fea7e7..abadce6 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-extra.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-extra.md @@ -6,12 +6,12 @@ @ExperimentalSerializationApi -fun <[T](put-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](put-extra.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) +fun <[T](put-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](put-extra.md)>, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) @ExperimentalSerializationApi -fun <[T](put-extra.md)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), serializer: SerializationStrategy<[T](put-extra.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) +fun <[T](put-extra.md)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), serializer: SerializationStrategy<[T](put-extra.md)>, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) @ExperimentalSerializationApi -inline fun <[T](put-extra.md)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) +inline fun <[T](put-extra.md)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-parcelable.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-parcelable.md index b3d896b..323780a 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-parcelable.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-parcelable.md @@ -6,12 +6,12 @@ @ExperimentalSerializationApi -fun <[T](put-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](put-parcelable.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default) +fun <[T](put-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](put-parcelable.md)>, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default) @ExperimentalSerializationApi -fun <[T](put-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), serializer: SerializationStrategy<[T](put-parcelable.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default) +fun <[T](put-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), serializer: SerializationStrategy<[T](put-parcelable.md)>, parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default) @ExperimentalSerializationApi -inline fun <[T](put-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FMain%2F-1462739831) = Parcelable.Default) +inline fun <[T](put-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), parcelable: [Parcelable](-parcelable/index.md) = Parcelable.Default) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/read-from-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/read-from-parcel.md index 894afc4..e661d42 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/read-from-parcel.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/read-from-parcel.md @@ -3,6 +3,6 @@ # readFromParcel [android]\ -fun [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[readFromParcel](read-from-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)) +fun [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[readFromParcel](read-from-parcel.md)(parcel: [Parcel](-parcel/index.md)) Reads the Parcel contents into this Bundle, typically in order for it to be passed through an IBinder connection. Params: parcel – The parcel to overwrite this bundle from. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/to-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/to-parcel.md index 4ff9719..aa14f86 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/to-parcel.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/to-parcel.md @@ -3,6 +3,6 @@ # toParcel [android]\ -inline fun [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html).[toParcel](to-parcel.md)(): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) +inline fun [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html).[toParcel](to-parcel.md)(): [Parcel](-parcel/index.md) -Creates a [com.chrynan.parcelable.core.Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) instance from this [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) class. +Creates a [com.chrynan.parcelable.core.Parcel](-parcel/index.md) instance from this [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) class.