mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-06 03:50:18 +02:00
feat(adb): rewrite process spawner API (#739)
This commit is contained in:
parent
46e78401a4
commit
d3019ce738
75 changed files with 1422 additions and 1022 deletions
|
@ -7,12 +7,19 @@ import {
|
|||
getDisplays,
|
||||
getEncoders,
|
||||
} from "../1_15/impl/index.js";
|
||||
import type { AdbScrcpyClientOptions } from "../client-options.js";
|
||||
import type { AdbScrcpyConnection } from "../connection.js";
|
||||
import { AdbScrcpyOptions } from "../types.js";
|
||||
|
||||
export class AdbScrcpyOptions1_22 extends AdbScrcpyOptions<ScrcpyOptions1_22.Init> {
|
||||
constructor(init: ScrcpyOptions1_22.Init, version?: string) {
|
||||
super(new ScrcpyOptions1_22(init, version));
|
||||
constructor(
|
||||
init: ScrcpyOptions1_22.Init,
|
||||
clientOptions?: AdbScrcpyClientOptions,
|
||||
) {
|
||||
super(
|
||||
new ScrcpyOptions1_22(init, clientOptions?.version),
|
||||
clientOptions?.spawner,
|
||||
);
|
||||
}
|
||||
|
||||
override getEncoders(adb: Adb, path: string): Promise<ScrcpyEncoder[]> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue