@capgo/capacitor-screen-recorder 7.2.6 → 7.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
  <a href="https://capgo.app/"><img src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/></a>
3
3
 
4
4
  <div align="center">
5
- <h2><a href="https://capgo.app/?ref=plugin"> ➡️ Get Instant updates for your App with Capgo</a></h2>
6
- <h2><a href="https://capgo.app/consulting/?ref=plugin"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
5
+ <h2><a href="https://capgo.app/?ref=plugin_screen_recorder"> ➡️ Get Instant updates for your App with Capgo</a></h2>
6
+ <h2><a href="https://capgo.app/consulting/?ref=plugin_screen_recorder"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
7
7
  </div>
8
8
  Record device's screen
9
9
 
@@ -85,17 +85,27 @@ No configuration required for this plugin.
85
85
  <docgen-api>
86
86
  <!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
87
87
 
88
+ Capacitor Screen Recorder Plugin for recording the device screen.
89
+ Allows you to capture video recordings of the screen with optional audio.
90
+
88
91
  ### start(...)
89
92
 
90
93
  ```typescript
91
94
  start(options?: { recordAudio?: boolean | undefined; } | undefined) => Promise<void>
92
95
  ```
93
96
 
94
- start the recording
97
+ Start recording the device screen.
98
+
99
+ Initiates screen recording with optional audio capture. The user will be
100
+ prompted to grant screen recording permissions if not already granted.
101
+ On iOS, the system recording UI will be displayed. On Android, the recording
102
+ starts immediately after permission is granted.
103
+
104
+ | Param | Type | Description |
105
+ | ------------- | --------------------------------------- | --------------------------------- |
106
+ | **`options`** | <code>{ recordAudio?: boolean; }</code> | - Recording configuration options |
95
107
 
96
- | Param | Type | Description |
97
- | ------------- | --------------------------------------- | ----------------- |
98
- | **`options`** | <code>{ recordAudio?: boolean; }</code> | Recording options |
108
+ **Since:** 1.0.0
99
109
 
100
110
  --------------------
101
111
 
@@ -106,7 +116,13 @@ start the recording
106
116
  stop() => Promise<void>
107
117
  ```
108
118
 
109
- stop the recording
119
+ Stop the current screen recording.
120
+
121
+ Stops the active screen recording and saves the video to the device's
122
+ camera roll or gallery. On iOS, the system will show a preview of the
123
+ recording. On Android, the video is saved directly to the gallery.
124
+
125
+ **Since:** 1.0.0
110
126
 
111
127
  --------------------
112
128
 
@@ -117,10 +133,12 @@ stop the recording
117
133
  getPluginVersion() => Promise<{ version: string; }>
118
134
  ```
119
135
 
120
- Get the native Capacitor plugin version
136
+ Get the native Capacitor plugin version.
121
137
 
122
138
  **Returns:** <code>Promise&lt;{ version: string; }&gt;</code>
123
139
 
140
+ **Since:** 1.0.0
141
+
124
142
  --------------------
125
143
 
126
144
  </docgen-api>
@@ -11,7 +11,7 @@ import dev.bmcreations.scrcast.config.Options;
11
11
  @CapacitorPlugin(name = "ScreenRecorder")
12
12
  public class ScreenRecorderPlugin extends Plugin {
13
13
 
14
- private final String PLUGIN_VERSION = "7.2.6";
14
+ private final String PLUGIN_VERSION = "7.3.0";
15
15
 
16
16
  private ScrCast recorder;
17
17
 
package/dist/docs.json CHANGED
@@ -2,8 +2,13 @@
2
2
  "api": {
3
3
  "name": "ScreenRecorderPlugin",
4
4
  "slug": "screenrecorderplugin",
5
- "docs": "",
6
- "tags": [],
5
+ "docs": "Capacitor Screen Recorder Plugin for recording the device screen.\nAllows you to capture video recordings of the screen with optional audio.",
6
+ "tags": [
7
+ {
8
+ "text": "1.0.0",
9
+ "name": "since"
10
+ }
11
+ ],
7
12
  "methods": [
8
13
  {
9
14
  "name": "start",
@@ -11,7 +16,7 @@
11
16
  "parameters": [
12
17
  {
13
18
  "name": "options",
14
- "docs": "Recording options",
19
+ "docs": "- Recording configuration options",
15
20
  "type": "{ recordAudio?: boolean | undefined; } | undefined"
16
21
  }
17
22
  ],
@@ -19,10 +24,30 @@
19
24
  "tags": [
20
25
  {
21
26
  "name": "param",
22
- "text": "options Recording options"
27
+ "text": "options - Recording configuration options"
28
+ },
29
+ {
30
+ "name": "param",
31
+ "text": "options.recordAudio - Whether to record audio along with the screen video. Defaults to false."
32
+ },
33
+ {
34
+ "name": "returns",
35
+ "text": "Promise that resolves when recording starts"
36
+ },
37
+ {
38
+ "name": "throws",
39
+ "text": "Error if recording fails to start or permissions are denied"
40
+ },
41
+ {
42
+ "name": "since",
43
+ "text": "1.0.0"
44
+ },
45
+ {
46
+ "name": "example",
47
+ "text": "```typescript\n// Start recording without audio\nawait ScreenRecorder.start();\n\n// Start recording with audio\nawait ScreenRecorder.start({ recordAudio: true });\n```"
23
48
  }
24
49
  ],
25
- "docs": "start the recording",
50
+ "docs": "Start recording the device screen.\n\nInitiates screen recording with optional audio capture. The user will be\nprompted to grant screen recording permissions if not already granted.\nOn iOS, the system recording UI will be displayed. On Android, the recording\nstarts immediately after permission is granted.",
26
51
  "complexTypes": [],
27
52
  "slug": "start"
28
53
  },
@@ -31,8 +56,25 @@
31
56
  "signature": "() => Promise<void>",
32
57
  "parameters": [],
33
58
  "returns": "Promise<void>",
34
- "tags": [],
35
- "docs": "stop the recording",
59
+ "tags": [
60
+ {
61
+ "name": "returns",
62
+ "text": "Promise that resolves when recording stops and the video is saved"
63
+ },
64
+ {
65
+ "name": "throws",
66
+ "text": "Error if stopping the recording fails or no recording is active"
67
+ },
68
+ {
69
+ "name": "since",
70
+ "text": "1.0.0"
71
+ },
72
+ {
73
+ "name": "example",
74
+ "text": "```typescript\nawait ScreenRecorder.stop();\nconsole.log('Recording saved to gallery');\n```"
75
+ }
76
+ ],
77
+ "docs": "Stop the current screen recording.\n\nStops the active screen recording and saves the video to the device's\ncamera roll or gallery. On iOS, the system will show a preview of the\nrecording. On Android, the video is saved directly to the gallery.",
36
78
  "complexTypes": [],
37
79
  "slug": "stop"
38
80
  },
@@ -44,14 +86,22 @@
44
86
  "tags": [
45
87
  {
46
88
  "name": "returns",
47
- "text": "an Promise with version for this device"
89
+ "text": "Promise that resolves with the plugin version"
48
90
  },
49
91
  {
50
92
  "name": "throws",
51
- "text": "An error if the something went wrong"
93
+ "text": "Error if getting the version fails"
94
+ },
95
+ {
96
+ "name": "since",
97
+ "text": "1.0.0"
98
+ },
99
+ {
100
+ "name": "example",
101
+ "text": "```typescript\nconst { version } = await ScreenRecorder.getPluginVersion();\nconsole.log('Plugin version:', version);\n```"
52
102
  }
53
103
  ],
54
- "docs": "Get the native Capacitor plugin version",
104
+ "docs": "Get the native Capacitor plugin version.",
55
105
  "complexTypes": [],
56
106
  "slug": "getpluginversion"
57
107
  }
@@ -1,20 +1,63 @@
1
+ /**
2
+ * Capacitor Screen Recorder Plugin for recording the device screen.
3
+ * Allows you to capture video recordings of the screen with optional audio.
4
+ *
5
+ * @since 1.0.0
6
+ */
1
7
  export interface ScreenRecorderPlugin {
2
8
  /**
3
- * start the recording
4
- * @param options Recording options
9
+ * Start recording the device screen.
10
+ *
11
+ * Initiates screen recording with optional audio capture. The user will be
12
+ * prompted to grant screen recording permissions if not already granted.
13
+ * On iOS, the system recording UI will be displayed. On Android, the recording
14
+ * starts immediately after permission is granted.
15
+ *
16
+ * @param options - Recording configuration options
17
+ * @param options.recordAudio - Whether to record audio along with the screen video. Defaults to false.
18
+ * @returns Promise that resolves when recording starts
19
+ * @throws Error if recording fails to start or permissions are denied
20
+ * @since 1.0.0
21
+ * @example
22
+ * ```typescript
23
+ * // Start recording without audio
24
+ * await ScreenRecorder.start();
25
+ *
26
+ * // Start recording with audio
27
+ * await ScreenRecorder.start({ recordAudio: true });
28
+ * ```
5
29
  */
6
30
  start(options?: {
7
31
  recordAudio?: boolean;
8
32
  }): Promise<void>;
9
33
  /**
10
- * stop the recording
34
+ * Stop the current screen recording.
35
+ *
36
+ * Stops the active screen recording and saves the video to the device's
37
+ * camera roll or gallery. On iOS, the system will show a preview of the
38
+ * recording. On Android, the video is saved directly to the gallery.
39
+ *
40
+ * @returns Promise that resolves when recording stops and the video is saved
41
+ * @throws Error if stopping the recording fails or no recording is active
42
+ * @since 1.0.0
43
+ * @example
44
+ * ```typescript
45
+ * await ScreenRecorder.stop();
46
+ * console.log('Recording saved to gallery');
47
+ * ```
11
48
  */
12
49
  stop(): Promise<void>;
13
50
  /**
14
- * Get the native Capacitor plugin version
51
+ * Get the native Capacitor plugin version.
15
52
  *
16
- * @returns {Promise<{ id: string }>} an Promise with version for this device
17
- * @throws An error if the something went wrong
53
+ * @returns Promise that resolves with the plugin version
54
+ * @throws Error if getting the version fails
55
+ * @since 1.0.0
56
+ * @example
57
+ * ```typescript
58
+ * const { version } = await ScreenRecorder.getPluginVersion();
59
+ * console.log('Plugin version:', version);
60
+ * ```
18
61
  */
19
62
  getPluginVersion(): Promise<{
20
63
  version: string;
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface ScreenRecorderPlugin {\n /**\n * start the recording\n * @param options Recording options\n */\n start(options?: { recordAudio?: boolean }): Promise<void>;\n /**\n * stop the recording\n */\n stop(): Promise<void>;\n\n /**\n * Get the native Capacitor plugin version\n *\n * @returns {Promise<{ id: string }>} an Promise with version for this device\n * @throws An error if the something went wrong\n */\n getPluginVersion(): Promise<{ version: string }>;\n}\n"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Capacitor Screen Recorder Plugin for recording the device screen.\n * Allows you to capture video recordings of the screen with optional audio.\n *\n * @since 1.0.0\n */\nexport interface ScreenRecorderPlugin {\n /**\n * Start recording the device screen.\n *\n * Initiates screen recording with optional audio capture. The user will be\n * prompted to grant screen recording permissions if not already granted.\n * On iOS, the system recording UI will be displayed. On Android, the recording\n * starts immediately after permission is granted.\n *\n * @param options - Recording configuration options\n * @param options.recordAudio - Whether to record audio along with the screen video. Defaults to false.\n * @returns Promise that resolves when recording starts\n * @throws Error if recording fails to start or permissions are denied\n * @since 1.0.0\n * @example\n * ```typescript\n * // Start recording without audio\n * await ScreenRecorder.start();\n *\n * // Start recording with audio\n * await ScreenRecorder.start({ recordAudio: true });\n * ```\n */\n start(options?: { recordAudio?: boolean }): Promise<void>;\n\n /**\n * Stop the current screen recording.\n *\n * Stops the active screen recording and saves the video to the device's\n * camera roll or gallery. On iOS, the system will show a preview of the\n * recording. On Android, the video is saved directly to the gallery.\n *\n * @returns Promise that resolves when recording stops and the video is saved\n * @throws Error if stopping the recording fails or no recording is active\n * @since 1.0.0\n * @example\n * ```typescript\n * await ScreenRecorder.stop();\n * console.log('Recording saved to gallery');\n * ```\n */\n stop(): Promise<void>;\n\n /**\n * Get the native Capacitor plugin version.\n *\n * @returns Promise that resolves with the plugin version\n * @throws Error if getting the version fails\n * @since 1.0.0\n * @example\n * ```typescript\n * const { version } = await ScreenRecorder.getPluginVersion();\n * console.log('Plugin version:', version);\n * ```\n */\n getPluginVersion(): Promise<{ version: string }>;\n}\n"]}
@@ -7,7 +7,7 @@ import Capacitor
7
7
  */
8
8
  @objc(ScreenRecorderPlugin)
9
9
  public class ScreenRecorderPlugin: CAPPlugin, CAPBridgedPlugin {
10
- private let PLUGIN_VERSION: String = "7.2.6"
10
+ private let PLUGIN_VERSION: String = "7.3.0"
11
11
  public let identifier = "ScreenRecorderPlugin"
12
12
  public let jsName = "ScreenRecorder"
13
13
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-screen-recorder",
3
- "version": "7.2.6",
3
+ "version": "7.3.0",
4
4
  "description": "Record device's screen",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -27,7 +27,15 @@
27
27
  "keywords": [
28
28
  "capacitor",
29
29
  "plugin",
30
- "native"
30
+ "native",
31
+ "screen-recorder",
32
+ "screen-recording",
33
+ "video",
34
+ "recording",
35
+ "capture",
36
+ "screen-capture",
37
+ "ios",
38
+ "android"
31
39
  ],
32
40
  "scripts": {
33
41
  "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",