parseExtra

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

Deprecated

This feature has been deprecated. It is recommended to use Compose Multiplatform instead.

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

Deprecated

This feature has been deprecated. It is recommended to use Compose Multiplatform instead.

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

if android.content.Intent?.getExtras is null