assistsx-js 0.0.2015 → 0.0.2016
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/AssistsX.d.ts +1 -1
- package/dist/AssistsX.js +3 -3
- package/dist/CallMethod.d.ts +1 -1
- package/dist/CallMethod.js +1 -1
- package/package.json +1 -1
- package/src/AssistsX.ts +3 -3
- package/src/CallMethod.ts +1 -1
package/dist/AssistsX.d.ts
CHANGED
|
@@ -365,7 +365,7 @@ export declare class AssistsX {
|
|
|
365
365
|
static getAndroidID(): any;
|
|
366
366
|
static getMacAddress(): Promise<any>;
|
|
367
367
|
static setAccessibilityEventFilters(value: AccessibilityEventFilter[]): Promise<any>;
|
|
368
|
-
static
|
|
368
|
+
static addAccessibilityEventFilter(value: AccessibilityEventFilter): Promise<any>;
|
|
369
369
|
/**
|
|
370
370
|
* 获取屏幕尺寸
|
|
371
371
|
* @returns 屏幕尺寸对象
|
package/dist/AssistsX.js
CHANGED
|
@@ -568,12 +568,12 @@ export class AssistsX {
|
|
|
568
568
|
}
|
|
569
569
|
static async setAccessibilityEventFilters(value) {
|
|
570
570
|
const response = this.call(CallMethod.setAccessibilityEventFilters, {
|
|
571
|
-
args: value,
|
|
571
|
+
args: { value },
|
|
572
572
|
});
|
|
573
573
|
return response.getDataOrDefault({});
|
|
574
574
|
}
|
|
575
|
-
static async
|
|
576
|
-
const response = this.call(CallMethod.
|
|
575
|
+
static async addAccessibilityEventFilter(value) {
|
|
576
|
+
const response = this.call(CallMethod.addAccessibilityEventFilter, {
|
|
577
577
|
args: value,
|
|
578
578
|
});
|
|
579
579
|
return response.getDataOrDefault({});
|
package/dist/CallMethod.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare const CallMethod: {
|
|
|
42
42
|
readonly getMacAddress: "getMacAddress";
|
|
43
43
|
readonly getAndroidID: "getAndroidID";
|
|
44
44
|
readonly getUniqueDeviceId: "getUniqueDeviceId";
|
|
45
|
-
readonly
|
|
45
|
+
readonly addAccessibilityEventFilter: "addAccessibilityEventFilter";
|
|
46
46
|
readonly setAccessibilityEventFilters: "setAccessibilityEventFilters";
|
|
47
47
|
};
|
|
48
48
|
export type CallMethodType = (typeof CallMethod)[keyof typeof CallMethod];
|
package/dist/CallMethod.js
CHANGED
|
@@ -43,6 +43,6 @@ export const CallMethod = {
|
|
|
43
43
|
getMacAddress: "getMacAddress",
|
|
44
44
|
getAndroidID: "getAndroidID",
|
|
45
45
|
getUniqueDeviceId: "getUniqueDeviceId",
|
|
46
|
-
|
|
46
|
+
addAccessibilityEventFilter: "addAccessibilityEventFilter",
|
|
47
47
|
setAccessibilityEventFilters: "setAccessibilityEventFilters",
|
|
48
48
|
};
|
package/package.json
CHANGED
package/src/AssistsX.ts
CHANGED
|
@@ -803,14 +803,14 @@ export class AssistsX {
|
|
|
803
803
|
value: AccessibilityEventFilter[]
|
|
804
804
|
): Promise<any> {
|
|
805
805
|
const response = this.call(CallMethod.setAccessibilityEventFilters, {
|
|
806
|
-
args: value,
|
|
806
|
+
args: { value },
|
|
807
807
|
});
|
|
808
808
|
return response.getDataOrDefault({});
|
|
809
809
|
}
|
|
810
|
-
public static async
|
|
810
|
+
public static async addAccessibilityEventFilter(
|
|
811
811
|
value: AccessibilityEventFilter
|
|
812
812
|
): Promise<any> {
|
|
813
|
-
const response = this.call(CallMethod.
|
|
813
|
+
const response = this.call(CallMethod.addAccessibilityEventFilter, {
|
|
814
814
|
args: value,
|
|
815
815
|
});
|
|
816
816
|
return response.getDataOrDefault({});
|
package/src/CallMethod.ts
CHANGED
|
@@ -46,7 +46,7 @@ export const CallMethod = {
|
|
|
46
46
|
getAndroidID: "getAndroidID",
|
|
47
47
|
getUniqueDeviceId: "getUniqueDeviceId",
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
addAccessibilityEventFilter: "addAccessibilityEventFilter",
|
|
50
50
|
setAccessibilityEventFilters: "setAccessibilityEventFilters",
|
|
51
51
|
} as const;
|
|
52
52
|
|