RSDBackgroundTask

public protocol RSDBackgroundTask : RSDTask

A background task is an extension of a task that can run a task without visual steps. This is intended for use in an active task where the user may need to set down their phone or put it in their pocket but still have the steps continue to transition if the screen has been locked or the phone has gone to sleep.

  • Should the task end early if the task is interrupted by a phone call?

    Declaration

    Swift

    var shouldEndOnInterrupt: Bool { get }
  • The audio session controller to use when running this task. If nil then the default session controller will be used, which might be nil depending upon the platform.

    Declaration

    Swift

    var audioSessionController: RSDAudioSessionController? { get }