tauri-plugin-android-accessibility-api 0.2.1 → 0.2.2

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/dist-js/index.cjs CHANGED
@@ -40,6 +40,11 @@ async function performNodeAction(payload) {
40
40
  payload,
41
41
  });
42
42
  }
43
+ async function typeText(payload) {
44
+ return await core.invoke('plugin:android-accessibility|type_text', {
45
+ payload,
46
+ });
47
+ }
43
48
 
44
49
  exports.checkAccessibilityEnabled = checkAccessibilityEnabled;
45
50
  exports.clickNode = clickNode;
@@ -49,3 +54,4 @@ exports.performGesture = performGesture;
49
54
  exports.performGlobalAction = performGlobalAction;
50
55
  exports.performNodeAction = performNodeAction;
51
56
  exports.ping = ping;
57
+ exports.typeText = typeText;
@@ -88,6 +88,14 @@ export interface NodeActionResponse {
88
88
  performedOnNodeId?: string | null;
89
89
  message?: string | null;
90
90
  }
91
+ export interface TypeTextRequest {
92
+ nodeId: string;
93
+ text: string;
94
+ }
95
+ export interface TypeTextResponse {
96
+ success: boolean;
97
+ message?: string | null;
98
+ }
91
99
  export declare function checkAccessibilityEnabled(): Promise<AccessibilityPermissionStatus>;
92
100
  export declare function openAccessibilitySettings(): Promise<OpenSettingsResponse>;
93
101
  export declare function getFrontmostUiTree(payload?: UiTreeRequest): Promise<UiTreeResponse>;
@@ -95,3 +103,4 @@ export declare function clickNode(payload: ClickNodeRequest): Promise<ClickNodeR
95
103
  export declare function performGesture(payload: PerformGestureRequest): Promise<PerformGestureResponse>;
96
104
  export declare function performGlobalAction(payload: GlobalActionRequest): Promise<GlobalActionResponse>;
97
105
  export declare function performNodeAction(payload: NodeActionRequest): Promise<NodeActionResponse>;
106
+ export declare function typeText(payload: TypeTextRequest): Promise<TypeTextResponse>;
package/dist-js/index.js CHANGED
@@ -38,5 +38,10 @@ async function performNodeAction(payload) {
38
38
  payload,
39
39
  });
40
40
  }
41
+ async function typeText(payload) {
42
+ return await invoke('plugin:android-accessibility|type_text', {
43
+ payload,
44
+ });
45
+ }
41
46
 
42
- export { checkAccessibilityEnabled, clickNode, getFrontmostUiTree, openAccessibilitySettings, performGesture, performGlobalAction, performNodeAction, ping };
47
+ export { checkAccessibilityEnabled, clickNode, getFrontmostUiTree, openAccessibilitySettings, performGesture, performGlobalAction, performNodeAction, ping, typeText };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tauri-plugin-android-accessibility-api",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "author": "ShizukuAqua",
5
5
  "description": "A Tauri plugin that supports Android accessibility features, allowing Tauri applications to interact with Android's accessibility services for enhanced functionality and user experience.",
6
6
  "license": "MIT",