Package apple.replaykit.protocol
Interface RPScreenRecorderDelegate
-
public interface RPScreenRecorderDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidscreenRecorderDidChangeAvailability(RPScreenRecorder screenRecorder)Called when the recorder becomes available or stops being available.default voidscreenRecorderDidStopRecordingWithErrorPreviewViewController(RPScreenRecorder screenRecorder, NSError error, RPPreviewViewController previewViewController)Called when recording has stopped due to an error.default voidscreenRecorderDidStopRecordingWithPreviewViewControllerError(RPScreenRecorder screenRecorder, RPPreviewViewController previewViewController, NSError error)
-
-
-
Method Detail
-
screenRecorderDidStopRecordingWithErrorPreviewViewController
default void screenRecorderDidStopRecordingWithErrorPreviewViewController(RPScreenRecorder screenRecorder, NSError error, RPPreviewViewController previewViewController)
Called when recording has stopped due to an error.- Parameters:
screenRecorder- The instance of the screen recorder.error- An NSError describing why recording has stopped in the RPRecordingErrorDomain.previewViewController- If a partial movie is available before it was stopped, an instance of RPPreviewViewController will be returned.
-
screenRecorderDidChangeAvailability
default void screenRecorderDidChangeAvailability(RPScreenRecorder screenRecorder)
Called when the recorder becomes available or stops being available. Check the screen recorder's availability property to check the current availability state. Possible reasons for the recorder to be unavailable include an in-progress Airplay/TVOut session or unsupported hardware.- Parameters:
screenRecorder- The instance of the screen recorder.
-
screenRecorderDidStopRecordingWithPreviewViewControllerError
default void screenRecorderDidStopRecordingWithPreviewViewControllerError(RPScreenRecorder screenRecorder, RPPreviewViewController previewViewController, NSError error)
-
-