Android 12 Developer Preview is here! Try it out, and give us your feedback!

ParcelableArrayType

class ParcelableArrayType<D : Parcelable!> : NavType<Array<D>!>
kotlin.Any
   ↳ androidx.navigation.NavType<kotlin.Array<D>>
   ↳ androidx.navigation.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
<init>(@NonNull type: Class<D>)

Constructs a NavType that supports arrays of a given Parcelable type.

Public methods
Boolean
equals(other: Any?)

Array<D>?
get(@NonNull bundle: Bundle, @NonNull key: String)

String

Int

Array<D>
parseValue(@NonNull value: String)

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

Inherited functions
Inherited properties