assistsx-js 0.0.2032 → 0.0.2033
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/AssistsXAsync.d.ts +1 -0
- package/dist/AssistsXAsync.js +6 -0
- package/dist/CallMethod.d.ts +1 -0
- package/dist/CallMethod.js +1 -0
- package/package.json +1 -1
- package/src/AssistsXAsync.ts +8 -0
- package/src/CallMethod.ts +1 -0
package/dist/AssistsXAsync.d.ts
CHANGED
|
@@ -382,4 +382,5 @@ export declare class AssistsXAsync {
|
|
|
382
382
|
static openUrlInBrowser(url: string, timeout?: number): Promise<boolean>;
|
|
383
383
|
static download(url: string, timeout?: number): Promise<string | null | undefined>;
|
|
384
384
|
static audioPlayFromFile(filePath: string, timeout?: number): Promise<string | null | undefined>;
|
|
385
|
+
static audioStop(timeout?: number): Promise<boolean | null | undefined>;
|
|
385
386
|
}
|
package/dist/AssistsXAsync.js
CHANGED
|
@@ -652,4 +652,10 @@ export class AssistsXAsync {
|
|
|
652
652
|
});
|
|
653
653
|
return response.getDataOrDefault(null);
|
|
654
654
|
}
|
|
655
|
+
static async audioStop(timeout) {
|
|
656
|
+
const response = await this.asyncCall(CallMethod.audioStop, {
|
|
657
|
+
timeout,
|
|
658
|
+
});
|
|
659
|
+
return response.getDataOrDefault(false);
|
|
660
|
+
}
|
|
655
661
|
}
|
package/dist/CallMethod.d.ts
CHANGED
|
@@ -54,5 +54,6 @@ export declare const CallMethod: {
|
|
|
54
54
|
readonly clearKeepScreenOn: "clearKeepScreenOn";
|
|
55
55
|
readonly download: "download";
|
|
56
56
|
readonly audioPlayFromFile: "audioPlayFromFile";
|
|
57
|
+
readonly audioStop: "audioStop";
|
|
57
58
|
};
|
|
58
59
|
export type CallMethodType = (typeof CallMethod)[keyof typeof CallMethod];
|
package/dist/CallMethod.js
CHANGED
package/package.json
CHANGED
package/src/AssistsXAsync.ts
CHANGED
|
@@ -935,6 +935,14 @@ export class AssistsXAsync {
|
|
|
935
935
|
});
|
|
936
936
|
return response.getDataOrDefault(null);
|
|
937
937
|
}
|
|
938
|
+
public static async audioStop(
|
|
939
|
+
timeout?: number
|
|
940
|
+
): Promise<boolean | null | undefined> {
|
|
941
|
+
const response = await this.asyncCall(CallMethod.audioStop, {
|
|
942
|
+
timeout,
|
|
943
|
+
});
|
|
944
|
+
return response.getDataOrDefault(false);
|
|
945
|
+
}
|
|
938
946
|
|
|
939
947
|
/**
|
|
940
948
|
* 发送HTTP请求
|