SyncInitializer class
Classe responsável por inicializar os serviços de sincronização usando SyncConfig
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isInitialized → bool
-
no setter
- logger → ISyncLoggerDebugProvider
-
no setter
- provider → SyncConfig?
-
no setter
- syncService → ISyncService
-
Obtém o serviço de sync após inicialização
no setter
Static Methods
-
getBackgroundSyncPreference(
) → Future< bool> - Recupera a preferência do usuário para background sync
-
initialize(
SyncConfig provider, {List< IDownloadStrategy> ? downloadStrategies}) → Future<void> - Inicializa o sistema de sincronização com um SyncConfig
-
reset(
) → void - Reset do inicializador (útil para testes)
-
saveBackgroundSyncPreference(
bool enabled) → Future< void> - Salva a preferência do usuário para background sync
-
updateConfig(
SyncConfig newProvider) → Future< void> - Atualiza a configuração de sincronização com um novo provider