bundleNonNull

inline fun <T : Any> Activity.bundleNonNull(key: String): Lazy<T>

Author

skydoves (Jaewoong Eum)

Retrieves a non-null references type of extended data from the Intent lazily.

Parameters

key

The name of the desired item.

Throws

When a value is not a supported type of Bundle or null.

When there is no desired value from the Intent.

inline fun <T : Any> Fragment.bundleNonNull(key: String): Lazy<T>

Author

skydoves (Jaewoong Eum)

Retrieves a references type of extended data from arguments lazily.

Parameters

key

The name of the desired item.

Throws

When a value is not a supported type of Bundle.

When there is no desired value from the arguments.