0.1.4 • Published 3 years ago
capacitor-adb v0.1.4
capacitor-shell
android shell capacitor plugin
Install
npm install capacitor-shell
npx cap syncAPI
executeNormalCommand(...)executeAdbCommand(...)getConnectIpPort(...)getPairipPort(...)wifidebuggingenabled()usbdebuggingenabled()getandroidversion()
executeNormalCommand(...)
executeNormalCommand(options: { command: string; }) => Promise<{ output: string; exitCode: number; errorOutput: string; }>| Param | Type |
|---|---|
options | { command: string; } |
Returns: Promise<{ output: string; exitCode: number; errorOutput: string; }>
executeAdbCommand(...)
executeAdbCommand(options: { command: string; }) => Promise<{ output: string; exitCode: number; errorOutput: string; }>| Param | Type |
|---|---|
options | { command: string; } |
Returns: Promise<{ output: string; exitCode: number; errorOutput: string; }>
getConnectIpPort(...)
getConnectIpPort(options: { timeout: number; }) => Promise<{ host: string; port: string; wifidebugenabled: boolean; }>| Param | Type |
|---|---|
options | { timeout: number; } |
Returns: Promise<{ host: string; port: string; wifidebugenabled: boolean; }>
getPairipPort(...)
getPairipPort(options: { timeout: number; }) => Promise<{ host: string; port: string; wifidebugenabled: boolean; }>| Param | Type |
|---|---|
options | { timeout: number; } |
Returns: Promise<{ host: string; port: string; wifidebugenabled: boolean; }>
wifidebuggingenabled()
wifidebuggingenabled() => Promise<{ enabled: boolean; }>Returns: Promise<{ enabled: boolean; }>
usbdebuggingenabled()
usbdebuggingenabled() => Promise<{ enabled: boolean; }>Returns: Promise<{ enabled: boolean; }>
getandroidversion()
getandroidversion() => Promise<{ version: string; }>Returns: Promise<{ version: string; }>