NavType.ParcelableArrayType



ParcelableArrayType is used for NavArguments which hold arrays of Parcelables.

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

Summary

Public constructors

android

Public functions

open operator Boolean
equals(other: Any?)
android
open operator Array<D>?
get(bundle: Bundle, key: String)
android
open Int
android
open Array<D>
android
open Unit
put(bundle: Bundle, key: String, value: Array<D>?)
android
open Boolean
valueEquals(value: Array<D>?, other: Array<D>?)
android

Public properties

open String
android

Inherited functions

From androidx.navigation.NavType
open Array<D>?
parseValue(value: String, previousValue: Array<D>?)
android
open String
serializeAsValue(value: Array<D>?)
android
open String
android

Inherited properties

From androidx.navigation.NavType
open Boolean
android

Public constructors

ParcelableArrayType

<D : Parcelable> ParcelableArrayType(type: Class<D>)
Parameters
type: Class<D>

the type of Parcelable component class of the array

Public functions

equals

open operator fun equals(other: Any?): Boolean

get

open operator fun get(bundle: Bundle, key: String): Array<D>?

hashCode

open fun hashCode(): Int

parseValue

open fun parseValue(value: String): Array<D>
Throws
kotlin.UnsupportedOperationException

since Arrays do not support default values

put

open fun put(bundle: Bundle, key: String, value: Array<D>?): Unit

valueEquals

open fun valueEquals(value: Array<D>?, other: Array<D>?): Boolean

Public properties

name

open val nameString