joaomgcd / TaskerPluginSample

A library to help speed up building a Tasker plugin
GNU General Public License v3.0
58 stars 23 forks source link

Add ability for Actions to be Cancelled #10

Open jonahwh opened 2 years ago

jonahwh commented 2 years ago

See #11 for an example of this in action

By sending an Intent such as:

Intent(context, IntentServiceAction::class.java).apply {
  action = IntentServiceAction.ACTION_STOP
}

Any running actions will be stopped with an InterruptedException