discardRecording(handler:)
Discards the current recording.
Declaration
func discardRecording(handler: @escaping () -> Void)Parameters
- handler:
A block that is called when the request is completed.
Discussion
discardRecording(handler:) can only be called after the handler block in stopRecording(handler:) has been called. Use the handler block to do any required cleanup, including setting any RPPreviewScreenController references to nil.