shared
TypeScriptstatic shared(): RPScreenRecorderSwift declarationclass func shared() -> RPScreenRecorderclass · iOS 9.0+ · Deprecated in iOS 27.0 · SDK 27.1
class RPScreenRecorderstatic shared(): RPScreenRecorderSwift declarationclass func shared() -> RPScreenRecorderdiscardRecording(handler: (() => void)): voidSwift declarationfunc discardRecording(handler: @escaping () -> Void)exportClip(url: string, duration: number, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc exportClip(to url: URL, duration: TimeInterval) async throwsstartCapture(captureHandler?: (((arg0: _CoreMedia_CMSampleBuffer, arg1: RPSampleBufferType, arg2: (NativeError) | null) => void)) | null, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc startCapture(handler captureHandler: ((CMSampleBuffer, RPSampleBufferType, (any Error)?) -> Void)?) async throwsstartClipBuffering(completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc startClipBuffering() async throwsstartRecordingHandler(handler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc startRecording(handler: (((any Error)?) -> Void)? = nil)startRecordingWithMicrophoneEnabledHandler(microphoneEnabled: boolean, handler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc startRecording(withMicrophoneEnabled microphoneEnabled: Bool, handler: (((any Error)?) -> Void)? = nil)stopCapture(handler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc stopCapture(handler: (((any Error)?) -> Void)? = nil)stopClipBuffering(completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc stopClipBuffering() async throwsstopRecordingHandler(handler?: (((arg0: (RPPreviewViewController) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc stopRecording(handler: ((RPPreviewViewController?, (any Error)?) -> Void)? = nil)stopRecordingWithOutputCompletionHandler(url: string, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc stopRecording(withOutput url: URL) async throwsget isAvailable(): booleanSwift declarationvar isAvailable: Bool { get }get isCameraEnabled(): booleanSwift declarationvar isCameraEnabled: Bool { get set }set isCameraEnabled(value: boolean)Swift declarationvar isCameraEnabled: Bool { get set }get cameraPosition(): RPCameraPositionSwift declarationvar cameraPosition: RPCameraPosition { get set }set cameraPosition(value: RPCameraPosition)Swift declarationvar cameraPosition: RPCameraPosition { get set }get cameraPreviewView(): (_UIKit_UIView) | nullSwift declarationvar cameraPreviewView: UIView? { get }get delegate(): (SDKHandle) | nullSwift declarationweak var delegate: (any RPScreenRecorderDelegate)? { get set }set delegate(value: (Implements<RPScreenRecorderDelegate> | SDKHandle) | null)Swift declarationweak var delegate: (any RPScreenRecorderDelegate)? { get set }get isMicrophoneEnabled(): booleanSwift declarationvar isMicrophoneEnabled: Bool { get set }set isMicrophoneEnabled(value: boolean)Swift declarationvar isMicrophoneEnabled: Bool { get set }get isRecording(): booleanSwift declarationvar isRecording: Bool { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
RPScreenRecorder.init()
inherited init: clang: 'init' is unavailable: not available on iOS