You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/site/docs/en/integrate-with-android.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,7 @@ The AndroidDevice constructor supports the following parameters:
128
128
-`remoteAdbPort?: number` - Optional, the remote adb port.
129
129
-`imeStrategy?: 'always-yadb' | 'yadb-for-non-ascii'` - Optional, when should Midscene invoke [yadb](https://github.com/ysbing/YADB) to input texts. (Default: 'always-yadb')
130
130
-`displayId?: number` - Optional, the display id to use. (Default: undefined, means use the current display)
131
+
-`screenshotResizeScale?: number` - Optional, screenshot resize scale. For example, 0.5 means resize the screenshot to 50% of its original size, which can reduce AI processing image size and improve response speed. Default is `1 / devicePixelRatio` (automatically scaled based on device pixel ratio).
Copy file name to clipboardExpand all lines: apps/site/docs/en/integrate-with-ios.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,6 +151,7 @@ The IOSDevice constructor supports the following parameters:
151
151
-`wdaPort?: number` - Optional, WebDriverAgent port. Default is 8100.
152
152
-`wdaHost?: string` - Optional, WebDriverAgent host. Default is 'localhost'.
153
153
-`autoDismissKeyboard?: boolean` - Optional, whether to automatically dismiss keyboard after text input. Default is true.
154
+
-`screenshotResizeScale?: number` - Optional, screenshot resize scale. For example, 0.5 means resize the screenshot to 50% of its original size, which can reduce AI processing image size and improve response speed. Default is 1 (no scaling).
154
155
-`customActions?: DeviceAction<any>[]` - Optional, list of custom device actions.
0 commit comments