bundleNonNullValue

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

Author

skydoves (Jaewoong Eum)

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

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.bundleNonNullValue(key: String): T

Author

skydoves (Jaewoong Eum)

Retrieves a references type of extended data from arguments immediately.

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.