onDestroy

open fun onDestroy(activity: Activity)

Method to call on your main activity onDestroy Calling this method if Batch is already stopped or not started will do nothing

Parameters

activity

the activity that generate the onDestroy event