@u4/adbkit
Version:
A Typescript client for the Android Debug Bridge.
82 lines • 3.13 kB
TypeScript
export declare const MotionEventMap: {
readonly ACTION_DOWN: 0;
readonly ACTION_UP: 1;
readonly ACTION_MOVE: 2;
readonly ACTION_CANCEL: 3;
readonly ACTION_OUTSIDE: 4;
readonly ACTION_POINTER_DOWN: 5;
readonly ACTION_POINTER_UP: 6;
readonly ACTION_HOVER_MOVE: 7;
readonly ACTION_SCROLL: 8;
readonly ACTION_HOVER_ENTER: 9;
readonly ACTION_HOVER_EXIT: 10;
readonly ACTION_BUTTON_PRESS: 11;
readonly ACTION_BUTTON_RELEASE: 12;
readonly BUTTON_PRIMARY: number;
readonly BUTTON_SECONDARY: number;
readonly BUTTON_TERTIARY: number;
readonly BUTTON_BACK: number;
readonly BUTTON_FORWARD: number;
readonly BUTTON_STYLUS_PRIMARY: number;
readonly BUTTON_STYLUS_SECONDARY: number;
};
export type MotionEvent = typeof MotionEventMap[keyof typeof MotionEventMap];
export declare const DeviceMessageTypeMap: {
readonly TYPE_CLIPBOARD: 0;
};
export type DeviceMessageType = typeof DeviceMessageTypeMap[keyof typeof DeviceMessageTypeMap];
export declare const SurfaceControlMap: {
readonly POWER_MODE_OFF: 0;
readonly POWER_MODE_NORMAL: 2;
};
export type SurfaceControl = typeof SurfaceControlMap[keyof typeof SurfaceControlMap];
export declare const OrientationMap: {
readonly LOCK_VIDEO_ORIENTATION_UNLOCKED: -1;
readonly LOCK_VIDEO_ORIENTATION_INITIAL: -2;
readonly LOCK_SCREEN_ORIENTATION_0: 0;
readonly LOCK_SCREEN_ORIENTATION_1: 1;
readonly LOCK_SCREEN_ORIENTATION_2: 2;
readonly LOCK_SCREEN_ORIENTATION_3: 3;
};
export type Orientation = typeof OrientationMap[keyof typeof OrientationMap];
/**
* imported from ./server/src/main/java/com/genymobile/scrcpy/control/ControlMessage.java
*/
export declare const ControlMessageMap: {
readonly TYPE_INJECT_KEYCODE: 0;
readonly TYPE_INJECT_TEXT: 1;
readonly TYPE_INJECT_TOUCH_EVENT: 2;
readonly TYPE_INJECT_SCROLL_EVENT: 3;
readonly TYPE_BACK_OR_SCREEN_ON: 4;
readonly TYPE_EXPAND_NOTIFICATION_PANEL: 5;
readonly TYPE_EXPAND_SETTINGS_PANEL: 6;
readonly TYPE_COLLAPSE_PANELS: 7;
readonly TYPE_GET_CLIPBOARD: 8;
readonly TYPE_SET_CLIPBOARD: 9;
readonly TYPE_SET_SCREEN_POWER_MODE: 10;
readonly TYPE_ROTATE_DEVICE: 11;
readonly TYPE_UHID_CREATE: 12;
readonly TYPE_UHID_INPUT: 13;
readonly TYPE_UHID_DESTROY: 14;
readonly TYPE_OPEN_HARD_KEYBOARD_SETTINGS: 15;
};
export type ControlMessage = typeof ControlMessageMap[keyof typeof ControlMessageMap];
export declare const KeyEventMetaMap: {
readonly META_CTRL_LEFT_ON: 8192;
readonly META_CTRL_ON: 28672;
readonly META_META_MASK: 458752;
readonly META_CAPS_LOCK_ON: 1048576;
readonly META_CTRL_RIGHT_ON: 16384;
readonly META_META_LEFT_ON: 131072;
};
export type KeyEventMeta = typeof KeyEventMetaMap[keyof typeof KeyEventMetaMap];
export declare const codexMap: {
readonly H264: 1748121140;
readonly H265: 1748121141;
readonly AV1: 6387249;
readonly OPUS: 1869641075;
readonly AAC: 6381923;
readonly RAW: 7496055;
};
export type CodecId = typeof codexMap[keyof typeof codexMap];
//# sourceMappingURL=ScrcpyConst.d.ts.map