SyncNotificationService class

Serviço interno de notificações do Syncly

Este serviço gerencia todas as notificações relacionadas à sincronização de forma independente, sem depender de implementações externas.

Properties

activeNotifications → Map<int, String>
Obtém a lista de notificações ativas
no setter
activeNotificationsCount → int
Obtém o número de notificações ativas
no setter
hashCode → int
The hash code for this object.
no setterinherited
isEnabled → bool
Verifica se as notificações estão habilitadas
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelAllNotifications() → Future<void>
Cancela todas as notificações
cancelNotification(int notificationId) → Future<void>
Cancela uma notificação específica
dispose() → void
Limpa o serviço (usado para testes)
initialize({required bool enabled}) → Future<void>
Inicializa o serviço de notificações
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showDownloadProgressNotification({required String fileName, required int progress, required int total, int? notificationId}) → Future<void>
Mostra notificação de progresso de download
showNotification({required String title, required String message, String? channelId, int? notificationId}) → Future<void>
Mostra uma notificação simples
showOfflineModeNotification() → Future<void>
Mostra notificação de modo offline
showOnlineModeNotification() → Future<void>
Mostra notificação de volta ao modo online
showProgressNotification({required String title, required String message, required int progress, required int maxProgress, int? notificationId}) → Future<void>
Mostra uma notificação de progresso
showSyncCompletedNotification() → Future<void>
Mostra notificação de sincronização concluída
showSyncErrorNotification(String error) → Future<void>
Mostra notificação de erro na sincronização
showSyncStartedNotification() → Future<void>
Mostra notificação de início de sincronização
showUploadProgressNotification({required String fileName, required int progress, required int total, int? notificationId}) → Future<void>
Mostra notificação de progresso de upload
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance → SyncNotificationService
no setter