resultLauncher

inline fun ComponentActivity.resultLauncher(crossinline onSuccess: () -> Unit = {}, crossinline onFailure: () -> Unit = {}): ActivityResultLauncher<Intent>

Launch an activity for result.

Parameters

onSuccess

Callback when the result is successful.

onFailure

Callback when the result is failed.