startClearStack

fun <T : Any> KClass<T>.startClearStack(context: Context, with: (bundle: Bundle) -> Unit? = null)

Start an activity from the class and clear the stack

Parameters

context

Context to start the activity from

with

Optional bundle