You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1287,6 +1291,59 @@ tns.devicesService.startEmulator({imageIdentifier: "my emulator imageIdentifier"
1287
1291
.then(errors=> { });
1288
1292
```
1289
1293
1294
+
### startDeviceDetectionInterval
1295
+
Starts device detection interval, which is run on specified number of seconds. This allows detection of new attached devices, started emulators/simulators, detection when device/emulator/simulator is disconnected, etc.
1296
+
> NOTE: The interval is started automatically when you call `devicesService.initialize` without passing `skipDeviceDetectionInterval:true`.
1297
+
1298
+
> NOTE: iOS Device detection interval cannot be stopped, so once started, it will always report connected/disconnected devices.
Stops device detection interval started by `devicesService.initialize` or `devicesService.startDeviceDetectionInterval`.
1312
+
* Definition
1313
+
```TypeScript
1314
+
stopDeviceDetectionInterval():void
1315
+
```
1316
+
1317
+
* Usage
1318
+
```JavaScript
1319
+
tns.devicesService.stopDeviceDetectionInterval();
1320
+
```
1321
+
1322
+
### startEmulatorDetectionInterval
1323
+
Starts emulator images detection interval, which is run on specified number of seconds. This allows detection of new installed emulator/simulator images.
1324
+
1325
+
* Definition
1326
+
```TypeScript
1327
+
startEmulatorDetectionInterval({ detectionInterval?: number }):void
* Specifies whether we should skip the emulator starting.
413
409
*/
414
410
skipEmulatorStart?: boolean;
415
-
/**
416
-
* Defines if the initialization should await the whole iOS detection to finish or it can just start the detection.
417
-
*/
418
-
shouldReturnImmediateResult?: boolean;
419
411
/**
420
412
* Currently available only for iOS. Specifies the sdk version of the iOS simulator.
421
413
* In case when `tns run ios --device "iPhone 6"` command is executed, the user can specify the sdk of the simulator because it is possible to have more than one device with the same name but with different sdk versions.
0 commit comments