NavType.SerializableArrayType
-
android
class NavType.SerializableArrayType<D : Serializable> : NavType
SerializableArrayType is used for NavArgument
s that hold arrays of Serializables. This type also supports arrays of Enums.
Null values are supported. Default values in Navigation XML files are not supported.
Summary
Public constructors |
|
---|---|
<D : Serializable> SerializableArrayType(type: Class<D>) |
android
|
Public functions |
||
---|---|---|
open operator Boolean |
android
|
|
open operator Array<D>? |
android
|
|
open Int |
hashCode() |
android
|
open Array<D> |
parseValue(value: String) |
android
|
open Unit |
android
|
|
open Boolean |
valueEquals(value: Array<D>?, other: Array<D>?) |
android
|
Inherited functions |
|||||||||
---|---|---|---|---|---|---|---|---|---|
|
Inherited properties |
|||
---|---|---|---|
|
Public constructors
SerializableArrayType
<D : Serializable> SerializableArrayType(type: Class<D>)
Parameters | |
---|---|
type: Class<D> |
the Serializable component class of the array |
Public functions
parseValue
open fun parseValue(value: String): Array<D>
Throws | |
---|---|
kotlin.UnsupportedOperationException |
since Arrays do not support default values |