AtSyncUIService class

Constructors

AtSyncUIService()
factory

Properties

atSyncUIListener Stream<AtSyncUIStatus>
atSyncUIListener can be used to listen to sync status changes
no setter
atSyncUIOverlay AtSyncUIOverlay
getter/setter pair
atSyncUIStyle AtSyncUIStyle
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onAtSignRemoved Function?
getter/setter pair
onErrorCallback Function?
getter/setter pair
onSuccessCallback Function?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showRemoveAtsignOption bool
getter/setter pair
showTextWhileSyncing bool
getter/setter pair
syncProgressCallback Function?
getter/setter pair
syncService ↔ SyncService?
getter/setter pair

Methods

cancelTimer() → dynamic
init({required GlobalKey<NavigatorState> appNavigator, AtSyncUIOverlay? atSyncUIOverlay = AtSyncUIOverlay.dialog, AtSyncUIStyle? style, bool? showTextWhileSyncing, Function? onSuccessCallback, Function? onErrorCallback, Function? syncProgressCallback, Function? onAtSignRemoved, Color? primaryColor, Color? backgroundColor, Color? labelColor, bool showRemoveAtsignOption = false, bool startTimer = true}) → void
appNavigator is used for navigation purpose atSyncUIOverlay decides whether dialog or snackbar to be shown while syncing style if material or cupertino style to be applied showTextWhileSyncing should text be shown while syncing onSuccessCallback called after successful sync onErrorCallback called after failure in sync syncProgressCallback Notifies the registered listener for the SyncProgress primaryColor,backgroundColor, labelColor will be used while displaying overlay/snackbar. if showRemoveAtsignOption is true, onAtSignRemoved will be called if atSign is removed successfully from device
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSyncProgressEvent(SyncProgress syncProgress) → void
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.
sync({AtSyncUIOverlay atSyncUIOverlay = AtSyncUIOverlay.none, bool startTimer = true}) → void
calls sync and shows selected UI atSyncUIOverlay decides whether dialog or snackbar to be shown while syncing
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited