NavType.ParcelableType
-
android
class NavType.ParcelableType<D : Any?> : NavType
ParcelableType is used for passing Parcelables in NavArguments.
Null values are supported. Default values in Navigation XML files are not supported.
Summary
Public constructors |
|
|---|---|
<D : Any?> ParcelableType(type: Class<D>) |
android
|
Public functions |
||
|---|---|---|
open operator Boolean |
android
|
|
open operator D? |
android
|
|
open Int |
hashCode() |
android
|
open D |
parseValue(value: String) |
android
|
open Unit |
android
|
Inherited functions |
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited properties |
|||
|---|---|---|---|
|
Public constructors
ParcelableType
<D : Any?> ParcelableType(type: Class<D>)
| Parameters | |
|---|---|
type: Class<D> |
the Parcelable class that is supported by this NavType |
Public functions
parseValue
open fun parseValue(value: String): D
| Throws | |
|---|---|
kotlin.UnsupportedOperationException |
since Parcelables do not support default values |