Contents

setStateFromPause(_:)

Sets the extension to a previously saved state.

Declaration

func setStateFromPause(_ pausedState: [AnyHashable : Any]!)

Parameters

  • pausedState:

    A set of attributes specifying the extension’s previously saved state information.

Discussion

The Compressor app calls this method before resuming an encoding job. The Compressor app provides attributes an extension requires to resume an encoding job from the point at which the encoding stopped. These attributes are the ones the extension passed to the Compressor app while pausing an encoder job. If the attributes dictionary is empty, the extension restarts the encoding job from the beginning. See cancel(forPause:).

The Compressor app resumes the encoding job by calling the runTranscode(for:start:duration:toFile:startTimeCode:) method.

See Also

Canceling or Pausing the Encoding Process