parseExtra

fun <T> Fragment.parseExtra(convert: Bundle.() -> T): T

Parses the Bundle of androidx.fragment.app.Fragment.getArguments into T using a convert method.

Return

The T value extracted from the Bundle

Parameters

convert

The method for converting Bundle into T

Throws


fun <T> Intent?.parseExtra(convert: Bundle.() -> T): T

Parses the Bundle of Intent into T using a convert method.

Return

The T value extracted from the Bundle

Parameters

convert

The method for converting Bundle into T

Throws