@yume-chan/scrcpy
Version:
TypeScript implementation of Scrcpy.
29 lines • 889 B
TypeScript
import type { ScrcpyOptions } from "../options/index.js";
export declare enum ScrcpyControlMessageType {
InjectKeyCode = 0,
InjectText = 1,
InjectTouch = 2,
InjectScroll = 3,
BackOrScreenOn = 4,
ExpandNotificationPanel = 5,
ExpandSettingPanel = 6,
CollapseNotificationPanel = 7,
GetClipboard = 8,
SetClipboard = 9,
SetScreenPowerMode = 10,
RotateDevice = 11
}
/**
* Scrcpy control message types have different values between versions.
*
* This class provides a way to get the actual value for a given type.
*/
export declare class ScrcpyControlMessageTypeValue {
#private;
constructor(options: ScrcpyOptions<object>);
get(type: ScrcpyControlMessageType): number;
fillMessageType<T extends {
type: ScrcpyControlMessageType;
}>(message: Omit<T, "type">, type: T["type"]): T;
}
//# sourceMappingURL=type.d.ts.map