ya-webadb/libraries/scrcpy/src/1_18/impl/init.ts

24 lines
566 B
TypeScript

import type { PrevImpl } from "./prev.js";
export type LogLevel = "verbose" | "debug" | "info" | "warn" | "error";
export const VideoOrientation = {
Initial: -2,
Unlocked: -1,
Portrait: 0,
Landscape: 1,
PortraitFlipped: 2,
LandscapeFlipped: 3,
};
export type VideoOrientation =
(typeof VideoOrientation)[keyof typeof VideoOrientation];
export interface Init
extends Omit<PrevImpl.Init, "logLevel" | "lockVideoOrientation"> {
logLevel?: LogLevel;
lockVideoOrientation?: VideoOrientation;
powerOffOnClose?: boolean;
}