-
-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy pathios-debugger-port-service.d.ts
31 lines (28 loc) · 1.18 KB
/
ios-debugger-port-service.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
interface IIOSDebuggerPortInputData extends IProjectDir {
deviceId: string;
appId: string;
}
interface IIOSDebuggerPortData extends IIOSDebuggerPortInputData {
port: number;
}
interface IIOSDebuggerPortStoredData {
port: number;
timer?: NodeJS.Timer;
}
interface IIOSDebuggerPortService {
/**
* Gets iOS debugger port for specified deviceId and appId
* @param {IIOSDebuggerPortInputData} data - Describes deviceId and appId
*/
getPort(data: IIOSDebuggerPortInputData): Promise<number>;
/**
* Attaches on DEBUGGER_PORT_FOUND event and STARTING_IOS_APPLICATION events
* In case when DEBUGGER_PORT_FOUND event is emitted, stores the port and clears the timeout if such.
* In case when STARTING_IOS_APPLICATION event is emitted, sets the port to null and add timeout for 10000 miliseconds which checks if port is null and prints a warning.
* @param {Mobile.IDevice} device - Describes the device which logs should be parsed.
* @param {IProjectDir} data - Object that has a projectDir property.
* @param {IDebugOptions} debugOptions
* @returns {Promise<void>}
*/
attachToDebuggerPortFoundEvent(device: Mobile.IDevice, data: IProjectDir, debugOptions: IDebugOptions): Promise<void>;
}