Instance Method

startRecordingWithMicrophoneEnabled:handler:

Starts recording the app’s audio and video.

Declaration

- (void)startRecordingWithMicrophoneEnabled:(BOOL)microphoneEnabled handler:(void (^)(NSError *error))handler;

Parameters

microphoneEnabled

Set to YES to activate the microphone during the recording. Defaults to NO.

handler

A block that is called when the request completes.

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 specific to ReplayKit.

Discussion

Call startRecordingWithMicrophoneEnabled:handler: on an instance of the recorder to begin recording. When startRecordingWithMicrophoneEnabled:handler: is first called, an alert window appears asking the user to confirm recording. This alert window is also presented if it has been longer than 8 minutes since the last time startRecordingWithMicrophoneEnabled:handler: was called.

See Also

Controlling App Recording

- startRecordingWithHandler:

Starts recording the app display.

- stopRecordingWithHandler:

Stops the current recording.

- startCaptureWithHandler:completionHandler:

Starts screen and audio capture.

RPSampleBufferType

The type of media clip sample being buffered.

- stopCaptureWithHandler:

Stops screen capture

- discardRecordingWithHandler:

Discards the current recording.