UNPKG

@yume-chan/scrcpy

Version:
29 lines 1.54 kB
import type { ScrcpyOptions } from "../options/index.js"; import type { AndroidKeyEventAction } from "./inject-keycode.js"; import { ScrcpyInjectKeyCodeControlMessage } from "./inject-keycode.js"; import type { ScrcpyInjectScrollControlMessage } from "./inject-scroll.js"; import type { ScrcpyInjectTouchControlMessage } from "./inject-touch.js"; import type { ScrcpySetClipboardControlMessage } from "./set-clipboard.js"; import type { AndroidScreenPowerMode } from "./set-screen-power-mode.js"; export declare class ScrcpyControlMessageSerializer { #private; constructor(options: ScrcpyOptions<object>); injectKeyCode(message: Omit<ScrcpyInjectKeyCodeControlMessage, "type">): Uint8Array; injectText(text: string): Uint8Array; /** * `pressure` is a float value between 0 and 1. */ injectTouch(message: Omit<ScrcpyInjectTouchControlMessage, "type">): Uint8Array; /** * `scrollX` and `scrollY` are float values between 0 and 1. */ injectScroll(message: Omit<ScrcpyInjectScrollControlMessage, "type">): Uint8Array | undefined; backOrScreenOn(action: AndroidKeyEventAction): Uint8Array | undefined; setScreenPowerMode(mode: AndroidScreenPowerMode): Uint8Array; expandNotificationPanel(): Uint8Array; expandSettingPanel(): Uint8Array; collapseNotificationPanel(): Uint8Array; rotateDevice(): Uint8Array; setClipboard(message: Omit<ScrcpySetClipboardControlMessage, "type">): Uint8Array | [Uint8Array, Promise<void>]; } //# sourceMappingURL=serializer.d.ts.map