bundleArrayValue

inline fun <T : Any> Activity.bundleArrayValue(key: String, crossinline defaultValue: () -> Array<T>? = { null }): Array<T>?

Author

skydoves (Jaewoong Eum)

Retrieves a references array type of extended data from the Intent immediately.

Parameters

key

The name of the desired item.

defaultValue

The value to be returned if no value of the desired type is stored with the given name.

Throws

When a value is not a supported type of Bundle.

inline fun <T : Any> Fragment.bundleArrayValue(key: String, crossinline defaultValue: () -> Array<T>? = { null }): Array<T>?

Author

skydoves (Jaewoong Eum)

Retrieves a references array type of extended data from arguments immediately.

Parameters

key

The name of the desired item.

defaultValue

The value to be returned if no value of the desired type is stored with the given name.

Throws

When a value is not a supported type of Bundle.