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
+5-13Lines changed: 5 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -684,28 +684,20 @@ tns.liveSyncService.on("error", data => {
684
684
});
685
685
```
686
686
687
-
* fileChanged - raised when a watched file is modified. The event is raised witht he following data:
687
+
* notify - raised when LiveSync operation has some data that is important for the user. The event is raised for specific device. The event is raised with the following data:
688
688
```TypeScript
689
689
{
690
690
projectDir: string;
691
-
/**
692
-
* Device identifiers on which the file will be LiveSynced.
693
-
*/
694
-
deviceIdentifiers: string[];
691
+
deviceIdentifier: string;
695
692
applicationIdentifier: string;
696
-
modifiedFile: string;
697
-
698
-
/**
699
-
* File System event - "add", "addDir", "change", "unlink", "unlinkDir".
700
-
*/
701
-
event: string;
693
+
notification: string;
702
694
}
703
695
```
704
696
705
697
Example:
706
698
```JavaScript
707
-
tns.liveSyncService.on("fileChanged", data=> {
708
-
console.log(`Detected file changed: ${data.modifiedFile} in ${data.projectDir}. Will start LiveSync operation on ${data.deviceIdentifiers.join(", ")}.`);
699
+
tns.liveSyncService.on("notify", data=> {
700
+
console.log(`Notification: ${notification} for LiveSync operation on ${data.deviceIdentifier} for ${data.projectDir}. `);
this.$logger.info(`Error while trying to start application ${projectData.projectId} on device ${liveSyncResultInfo.deviceAppData.device.deviceInfo.identifier}. Error is: ${err}`);
107
+
constmsg=`Unable to start application ${projectData.projectId} on device ${liveSyncResultInfo.deviceAppData.device.deviceInfo.identifier}. Try starting it manually.`;
0 commit comments