When an application is switched to the background, you can request a transient task to delay the suspension or a continuous task to prevent the suspension.
Reference
Transient Task and Continuous Task