startForResult

fun <T : Any> KClass<T>.startForResult(context: Activity, requestCode: Int, with: (bundle: Bundle) -> Unit? = null)

Start an activity from the class for the result

Parameters

context

Context to start the activity from

requestCode

Request code for the activity callback

with

Optional bundle