BackgroundTaskManager
public final class BackgroundTaskManager
Singleton to manage the background tasks. This class may be made internal in a future release. Similar functionality can be implemented with UIApplication’s beginBackgroundTask method.
-
Marks the beginning of a new long-running background task. This method lets your app continue to run for a period of time after it transitions to the background.
Declaration
Swift
public class func startBackgroundTask()
-
Marks the end of the last long-running background task.
Declaration
Swift
public class func stopBackgroundTask()