onSyncProgressEvent method
Notifies the registered listener for the SyncProgress
Caller has to register the listener using atClientManager.syncService.addProgressListener(...)
Caller can use SyncProgress.atSign
to know for which atSign the event was triggered.
Implementation
@override
void onSyncProgressEvent(SyncProgress syncProgress) {
if (AtSyncUIService().syncProgressCallback != null) {
AtSyncUIService().syncProgressCallback!(syncProgress);
}
if (syncProgress.syncStatus == SyncStatus.success) {
_hide();
_atSyncUIListenerSink.add(AtSyncUIStatus.completed);
}
if (syncProgress.syncStatus == SyncStatus.failure) {
_atSyncUIListenerSink.add(AtSyncUIStatus.failed);
}
}