It's happening now, watch the livestream.

SerializableType

open class SerializableType<D : Serializable!> : NavType<D>
kotlin.Any
   ↳ androidx.navigation.NavType<D>
   ↳ androidx.navigation.NavType.SerializableType

SerializableType is used for Serializable NavArguments. For handling Enums you must use EnumType instead.

Null values are supported. Default values in Navigation XML files are not supported.

Summary

Public constructors

<init>(@NonNull type: Class<D>)

Constructs a NavType that supports a given Serializable type.

Public methods

open Boolean
equals(other: Any?)

open D?
get(@NonNull bundle: Bundle, @NonNull key: String)

open String

open Int

open D
parseValue(@NonNull value: String)

open Unit
put(@NonNull bundle: Bundle, @NonNull key: String, @Nullable value: D?)

Inherited functions

Inherited properties

Public constructors

<init>

SerializableType(@NonNull type: Class<D>)

Constructs a NavType that supports a given Serializable type.

Parameters
type Class<D>: class that is a subtype of Serializable

Public methods

equals

open fun equals(other: Any?): Boolean

get

@Nullable open fun get(@NonNull bundle: Bundle, @NonNull key: String): D?

getName

@NonNull open fun getName(): String

hashCode

open fun hashCode(): Int

parseValue

@NonNull open fun parseValue(@NonNull value: String): D

put

open fun put(@NonNull bundle: Bundle, @NonNull key: String, @Nullable value: D?): Unit