@u4/adbkit
Version:
A Typescript client for the Android Debug Bridge.
23 lines • 900 B
TypeScript
import { DeviceClient } from "..";
declare const deviceTypes: readonly ["emulator", "device", "offline", "unauthorized", "recovery"];
/**
* adb device starts
*/
export type DeviceType = typeof deviceTypes[number];
export declare function isDeviceType(value: string): value is DeviceType;
export default interface Device {
/**
* The ID of the device. For real devices, this is usually the USB identifier.
*/
id: string;
/**
* The device type. Values include `'emulator'` for emulators, `'device'` for devices, and `'offline'` for offline devices. `'offline'` can occur for example during boot, in low-battery conditions or when the ADB connection has not yet been approved on the device.
*/
type: DeviceType;
/**
* return a DeviceClient attached to this devices
*/
getClient: () => DeviceClient;
}
export {};
//# sourceMappingURL=Device.d.ts.map