Instance Method

stopCapture(handler:)

Stops screen capture

Declaration

func stopCapture(handler: ((Error?) -> Void)? = nil)

Parameters

handler

A block that is called when screen capture has stopped.

error

If an error occurred, this parameter holds an object that explains the error. Otherwise, the value of this parameter is nil. See Errors for a list of error codes to ReplayKit.