triggerServiceRebirth

fun triggerServiceRebirth(context: Context, targetClass: Class<out Service>)

Call to restart the application process using the provided Service Class.

Behavior of the current process after invoking this method is undefined.


fun triggerServiceRebirth(context: Context, nextIntent: Intent)

Call to restart the application process using the specified Service intent.

Behavior of the current process after invoking this method is undefined.