BackgroundSyncService class
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 Methods
-
initialize(
) → Future< void> - Inicializa o serviço de sincronização em background
-
isBackgroundSyncActive(
) → Future< bool> - Verifica se a sincronização em background está ativa
-
showSyncProgressNotification(
{required String title, required String body, int? progress, int? maxProgress, bool indeterminate = false}) → Future< void> - Exibe uma notificação de progresso da sincronização
-
showSyncResultNotification(
{required String title, required String body, bool isSuccess = true}) → Future< void> - Mostra notificação de resultado da sincronização
-
startBackgroundSync(
) → Future< void> - Inicia a sincronização em background
-
stopBackgroundSync(
) → Future< void> - Para a sincronização em background
-
triggerImmediateSync(
) → Future< void> - Força uma sincronização imediata em background