Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

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

Public constructors

<init>

ParcelableArrayType(@NonNull type: Class<D>)

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

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

Public methods

equals

fun equals(other: Any?): Boolean

get

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

getName

@NonNull fun getName(): String

hashCode

fun hashCode(): Int

parseValue

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

put

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