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
0 commit comments