bundleArrayList

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

Author

skydoves (Jaewoong Eum)

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

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.bundleArrayList(key: String, crossinline defaultValue: () -> ArrayList<T>? = { null }): Lazy<ArrayList<T>?>

Author

skydoves (Jaewoong Eum)

Retrieves a references array list type of extended data from arguments lazily.

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.