Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions src/replaykit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ namespace ReplayKit {
///
/// <related type="externalDocumentation" href="https://developer.apple.com/reference/ReplayKit/RPPreviewViewController">Apple documentation for <c>RPPreviewViewController</c></related>
[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'SCRecordingEditor' instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use 'SCRecordingEditor' instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use 'SCRecordingEditor' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'SCRecordingEditor' instead.")]
Comment on lines +29 to +32
[BaseType (typeof (UIViewController))]
interface RPPreviewViewController {
/// <param name="nibName">
Expand Down Expand Up @@ -107,6 +111,10 @@ interface RPScreenRecorder {
void StartRecording (bool microphoneEnabled, [NullAllowed] Action<NSError> handler);

[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
Comment on lines +114 to +117
[Async (XmlDocs = """
<summary>Starts the recording and runs a handler when the recording starts.</summary>
<returns>A task that represents the asynchronous StartRecording operation</returns>
Expand All @@ -122,6 +130,10 @@ interface RPScreenRecorder {
</returns>
<remarks>To be added.</remarks>
""")]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Export ("stopRecordingWithHandler:")]
void StopRecording ([NullAllowed] Action<RPPreviewViewController, NSError> handler);

Expand All @@ -130,16 +142,28 @@ interface RPScreenRecorder {
<returns>A task that represents the asynchronous DiscardRecording operation</returns>
<remarks>To be added.</remarks>
""")]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Export ("discardRecordingWithHandler:")]
void DiscardRecording (Action handler);

[Deprecated (PlatformName.iOS, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Export ("delegate", ArgumentSemantic.Weak)]
[NullAllowed]
IRPScreenRecorderDelegate Delegate { get; set; }

/// <summary>Gets a Boolean that tells whether the screen is being recording.</summary>
/// <value>To be added.</value>
/// <remarks>To be added.</remarks>
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'SCStream.Capturing' instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use 'SCStream.Capturing' instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use 'SCStream.Capturing' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'SCStream.Capturing' instead.")]
Comment on lines +163 to +166
[Export ("recording", ArgumentSemantic.Assign)]
bool Recording { [Bind ("isRecording")] get; }

Expand All @@ -148,6 +172,9 @@ interface RPScreenRecorder {
/// <remarks>To be added.</remarks>
[NoTV]
[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Export ("microphoneEnabled", ArgumentSemantic.Assign)]
bool MicrophoneEnabled {
[Bind ("isMicrophoneEnabled")]
Expand All @@ -159,6 +186,10 @@ bool MicrophoneEnabled {
/// <summary>Gets a Boolean value that tells whether the screen recorder is available.</summary>
/// <value>To be added.</value>
/// <remarks>To be added.</remarks>
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'SCContentSharingPicker.Available' instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use 'SCContentSharingPicker.Available' instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use 'SCContentSharingPicker.Available' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'SCContentSharingPicker.Available' instead.")]
[Export ("available", ArgumentSemantic.Assign)]
bool Available { [Bind ("isAvailable")] get; }

Expand All @@ -167,20 +198,33 @@ bool MicrophoneEnabled {
/// <remarks>To be added.</remarks>
[NoTV]
[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Export ("cameraEnabled")]
bool CameraEnabled { [Bind ("isCameraEnabled")] get; set; }

[NoTV]
[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use ScreenCaptureKit instead.")]
[NullAllowed, Export ("cameraPreviewView")]
UIView CameraPreviewView { get; }

[NoTV]
[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Export ("cameraPosition", ArgumentSemantic.Assign)]
RPCameraPosition CameraPosition { get; set; }

[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'SCStream' with 'ISCStreamOutput' instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use 'SCStream' with 'ISCStreamOutput' instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use 'SCStream' with 'ISCStreamOutput' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'SCStream' with 'ISCStreamOutput' instead.")]
[Async (XmlDocs = """
<param name="captureHandler">To be added.</param>
<summary>Starts recording.</summary>
Expand All @@ -191,6 +235,10 @@ bool MicrophoneEnabled {
void StartCapture ([NullAllowed] Action<CMSampleBuffer, RPSampleBufferType, NSError> captureHandler, [NullAllowed] Action<NSError> completionHandler);

[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'SCStream.StopCapture' instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use 'SCStream.StopCapture' instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use 'SCStream.StopCapture' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'SCStream.StopCapture' instead.")]
[Async (XmlDocs = """
<summary>Stops screen and audio recording.</summary>
<returns>A task that represents the asynchronous StopCapture operation</returns>
Expand All @@ -204,22 +252,38 @@ bool MicrophoneEnabled {

[Introduced (PlatformName.MacCatalyst, 14, 0)]
[TV (14, 0), iOS (14, 0)]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Async]
[Export ("stopRecordingWithOutputURL:completionHandler:")]
void StopRecording (NSUrl url, [NullAllowed] Action<NSError> completionHandler);

[Async]
[TV (15, 4), iOS (15, 0), MacCatalyst (15, 0)]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'SCStream' with 'SCClipBufferingOutput' instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use 'SCStream' with 'SCClipBufferingOutput' instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use 'SCStream' with 'SCClipBufferingOutput' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'SCStream' with 'SCClipBufferingOutput' instead.")]
[Export ("exportClipToURL:duration:completionHandler:")]
void ExportClip (NSUrl url, double duration, [NullAllowed] Action<NSError> completionHandler);

[Async]
[TV (15, 4), iOS (15, 0), MacCatalyst (15, 0)]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'SCStream' with 'SCClipBufferingOutput' instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use 'SCStream' with 'SCClipBufferingOutput' instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use 'SCStream' with 'SCClipBufferingOutput' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'SCStream' with 'SCClipBufferingOutput' instead.")]
[Export ("startClipBufferingWithCompletionHandler:")]
void StartClipBuffering ([NullAllowed] Action<NSError> completionHandler);

[Async]
[TV (15, 4), iOS (15, 0), MacCatalyst (15, 0)]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'SCStream' with 'SCClipBufferingOutput' instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use 'SCStream' with 'SCClipBufferingOutput' instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use 'SCStream' with 'SCClipBufferingOutput' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'SCStream' with 'SCClipBufferingOutput' instead.")]
[Export ("stopClipBufferingWithCompletionHandler:")]
void StopClipBuffering ([NullAllowed] Action<NSError> completionHandler);
}
Expand Down Expand Up @@ -262,12 +326,20 @@ interface RPScreenRecorderDelegate {
/// <summary>To be added.</summary>
/// <remarks>To be added.</remarks>
[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'SCStream' with 'SCRecordingOutput' instead.")]
[Export ("screenRecorder:didStopRecordingWithPreviewViewController:error:")]
void DidStopRecording (RPScreenRecorder screenRecorder, [NullAllowed] RPPreviewViewController previewViewController, [NullAllowed] NSError error);

/// <param name="screenRecorder">To be added.</param>
/// <summary>Method that is called when the availability status changes.</summary>
/// <remarks>To be added.</remarks>
[Deprecated (PlatformName.iOS, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use ScreenCaptureKit instead.")]
[Export ("screenRecorderDidChangeAvailability:")]
void DidChangeAvailability (RPScreenRecorder screenRecorder);
}
Expand All @@ -277,6 +349,9 @@ interface RPScreenRecorderDelegate {
/// <related type="externalDocumentation" href="https://developer.apple.com/reference/ReplayKit/RPBroadcastActivityViewController">Apple documentation for <c>RPBroadcastActivityViewController</c></related>
[NoMac]
[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "No longer supported.")]
[BaseType (typeof (UIViewController))]
interface RPBroadcastActivityViewController {
// inlined
Expand Down Expand Up @@ -341,6 +416,9 @@ interface RPBroadcastActivityViewControllerDelegate {
/// <param name="error">The error that occurred, if present. Otherwise, <see langword="null" />.<para tool="nullallowed">This parameter can be <see langword="null" />.</para></param>
/// <summary>Method that is called when the broadcast activity view controller selection UI is about to be dismissed.</summary>
/// <remarks>If <paramref name="error" /> is <see langword="null" /> then the system is configured for broadcasting.</remarks>
[Deprecated (PlatformName.iOS, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "No longer supported.")]
[Abstract]
[Export ("broadcastActivityViewController:didFinishWithBroadcastController:error:")]
void DidFinish (RPBroadcastActivityViewController broadcastActivityViewController, [NullAllowed] RPBroadcastController broadcastController, [NullAllowed] NSError error);
Expand All @@ -350,6 +428,10 @@ interface RPBroadcastActivityViewControllerDelegate {
///
/// <related type="externalDocumentation" href="https://developer.apple.com/reference/ReplayKit/RPBroadcastController">Apple documentation for <c>RPBroadcastController</c></related>
[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "No longer supported.")]
[BaseType (typeof (NSObject))]
interface RPBroadcastController {
/// <summary>Gets a boolean value that tells whether the extension is currently broadcasting.</summary>
Expand Down Expand Up @@ -439,6 +521,10 @@ interface RPBroadcastControllerDelegate {
/// <summary>Method that is called when the broadcast URL is updated.</summary>
/// <remarks>To be added.</remarks>
[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "No longer supported.")]
[Export ("broadcastController:didUpdateBroadcastURL:")]
void DidUpdateBroadcastUrl (RPBroadcastController broadcastController, NSUrl broadcastUrl);
}
Expand Down Expand Up @@ -506,6 +592,10 @@ interface NSExtensionContext_RPBroadcastExtension {
///
/// <related type="externalDocumentation" href="https://developer.apple.com/reference/ReplayKit/RPBroadcastHandler">Apple documentation for <c>RPBroadcastHandler</c></related>
[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "No longer supported.")]
[BaseType (typeof (NSObject))]
interface RPBroadcastHandler : NSExtensionRequestHandling {
[Export ("updateServiceInfo:")]
Expand Down Expand Up @@ -534,6 +624,10 @@ interface RPBroadcastMP4ClipHandler {
///
/// <related type="externalDocumentation" href="https://developer.apple.com/reference/ReplayKit/RPBroadcastSampleHandler">Apple documentation for <c>RPBroadcastSampleHandler</c></related>
[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.TvOS, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "No longer supported.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "No longer supported.")]
[BaseType (typeof (RPBroadcastHandler))]
interface RPBroadcastSampleHandler {

Expand Down Expand Up @@ -580,6 +674,8 @@ interface RPBroadcastSampleHandler {
[NoTV]
[NoMac]
[MacCatalyst (13, 1)]
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'SCContentSharingPicker' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'SCContentSharingPicker' instead.")]
[BaseType (typeof (UIView))]
interface RPSystemBroadcastPickerView : NSCoding {

Expand All @@ -602,6 +698,7 @@ interface RPSystemBroadcastPickerView : NSCoding {
[NoiOS]
[NoTV]
[NoMacCatalyst]
[Deprecated (PlatformName.MacOSX, 27, 0, message: "No longer supported.")]
[BaseType (typeof (NSObject))]
interface RPBroadcastActivityController {

Expand All @@ -626,6 +723,7 @@ interface IRPBroadcastActivityControllerDelegate { }
[BaseType (typeof (NSObject))]
interface RPBroadcastActivityControllerDelegate {

[Deprecated (PlatformName.MacOSX, 27, 0, message: "No longer supported.")]
[Abstract]
[Export ("broadcastActivityController:didFinishWithBroadcastController:error:")]
void DidFinish (RPBroadcastActivityController broadcastActivityController, [NullAllowed] RPBroadcastController broadcastController, [NullAllowed] NSError error);
Expand Down

This file was deleted.

Loading
Loading