asMavericksArgs

fun Serializable.asMavericksArgs(): Bundle

Takes anything that is serializable and creates a Mavericks Fragment argument Bundle.

Set this as your Fragment's arguments and you can use the args property delegate in your Fragment to easily retrieve it.

fun Parcelable.asMavericksArgs(): Bundle

Takes anything that is Parcelable and creates a Mavericks Fragment argument Bundle.

Set this as your Fragment's arguments and you can use the args property delegate in your Fragment to easily retrieve it.