RSDAsyncActionStatus

@objc
public enum RSDAsyncActionStatus : Int

RSDAsyncActionStatus is an enum used to track the status of a RSDAsyncAction.

  • Initial state before the controller has been started.

    Declaration

    Swift

    case idle = 0
  • Status if the controller is currently requesting authorization. Once in this state and until the controller is starting, the UI should be blocked from any view transitions.

    Declaration

    Swift

    case requestingPermission
  • Status if the controller has granted permission, but not yet been started.

    Declaration

    Swift

    case permissionGranted
  • The controller is starting up. This is the state once RSDAsyncAction.start() has been called but before the recorder or request is running.

    Declaration

    Swift

    case starting
  • The action is running. For RSDRecorderConfiguration controllers, this means that the recording is open. For RSDRequestConfiguration controllers, this means that the request is in-flight.

    Declaration

    Swift

    case running
  • Waiting for in-flight buffers to be appended and ready to close.

    Declaration

    Swift

    case waitingToStop
  • Cleaning up by closing any buffers or file handles and processing any results that are returned by this controller.

    Declaration

    Swift

    case processingResults
  • Stopping any sensor managers. The controller should move to this state after any results are processed.

    Note

    Once in this state, the async action should not be changing the results associated with this action.

    Declaration

    Swift

    case stopping
  • The controller is finished running and ready to dealloc.

    Declaration

    Swift

    case finished
  • The recorder or request was cancelled and any results may be invalid.

    Declaration

    Swift

    case cancelled
  • The recorder or request failed and any results may be invalid.

    Declaration

    Swift

    case failed
  • Declaration

    Swift

    public static func < (lhs: RSDAsyncActionStatus, rhs: RSDAsyncActionStatus) -> Bool
  • Declaration

    Swift

    public var description: String { get }