restartWithIntent

fun Context.restartWithIntent(intent: Intent, intentId: Int = 1510, delayDuration: Int = 100)

Extension helper for context that helps us restart the application

Parameters

intent

Intent to start

intentId

Id of the pending intent which will be used