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
Copy file name to clipboardExpand all lines: PublicAPI.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -625,7 +625,7 @@ tns.liveSyncService.on("liveSyncStarted", data => {
625
625
});
626
626
```
627
627
628
-
* liveSyncExecuted - raised whenever CLI finishes a LiveSync operation for specific device. When `liveSync` method is called, the initial LiveSync operation will emit `liveSyncExecuted` for each specified device once it finishes the operation. After that the event will be emitted whenever a change is detected (in case file system watcher is staretd) and the LiveSync operation is executed for each device. The event is raised with the following data:
628
+
* liveSyncExecuted - raised whenever CLI finishes a LiveSync operation for specific device. When `liveSync` method is called, the initial LiveSync operation will emit `liveSyncExecuted` for each specified device once it finishes the operation. After that the event will be emitted whenever a change is detected (in case file system watcher is started) and the LiveSync operation is executed for each device. The event is raised with the following data:
629
629
```TypeScript
630
630
{
631
631
projectDir: string;
@@ -641,7 +641,7 @@ tns.liveSyncService.on("liveSyncStarted", data => {
641
641
Example:
642
642
```JavaScript
643
643
tns.liveSyncService.on("liveSyncExecuted", data => {
644
-
console.log(`Executed LiveSync on ${data.deviceIdentifier} for ${data.applicationIdentifier}. Uploaded files are: ${syncedFiles.join(" ")}.`);
644
+
console.log(`Executed LiveSync on ${data.deviceIdentifier} for ${data.applicationIdentifier}. Uploaded files are: ${data.syncedFiles.join(" ")}.`);
645
645
});
646
646
```
647
647
@@ -680,7 +680,7 @@ tns.liveSyncService.on("liveSyncStopped", data => {
680
680
Example:
681
681
```JavaScript
682
682
tns.liveSyncService.on("liveSyncError", data => {
683
-
console.log(`Error detected during LiveSync on ${data.deviceIdentifier} for ${data.projectDir}. Error: ${err.message}.`);
683
+
console.log(`Error detected during LiveSync on ${data.deviceIdentifier} for ${data.projectDir}. Error: ${data.error.message}.`);
684
684
});
685
685
```
686
686
@@ -697,7 +697,7 @@ tns.liveSyncService.on("liveSyncError", data => {
697
697
Example:
698
698
```JavaScript
699
699
tns.liveSyncService.on("notify", data => {
700
-
console.log(`Notification: ${notification} for LiveSync operation on ${data.deviceIdentifier} for ${data.projectDir}. `);
700
+
console.log(`Notification: ${data.notification} for LiveSync operation on ${data.deviceIdentifier} for ${data.projectDir}. `);
$injector.requirePublicClass("liveSyncService", "./services/livesync/livesync-service"); // The name is used in https://github.com/NativeScript/nativescript-dev-typescript
$injector.require("usbLiveSyncService", "./services/livesync/livesync-service"); // The name is used in https://github.com/NativeScript/nativescript-dev-typescript
0 commit comments