Instance Method

invalidate()

Prevents the background activity from being scheduled again.

Declaration

func invalidate()

Discussion

When invalidate is used to stop an activity that is currently executing, the activity will still finish executing.

See Stop Activity.