RSDMotionTaskObject
open class RSDMotionTaskObject : RSDTaskObject, RSDBackgroundTask
This background task is a work-around for a running task that uses the motion sensors with the screen locked. If using GPS or a streaming audio file, using this object is not required to keep the task active in the background.
-
By default, a motion task that runs in the background should not continue if the task is interupted by a phone call.
Declaration
Swift
open var shouldEndOnInterrupt: Bool
-
By default, if a motion task is intended to run in the background, then it will return a pointer to an instance of
RSDMotionAudioSessionController
.Declaration
Swift
open var audioSessionController: RSDAudioSessionController? { get }