ArcaneFCMService<N extends ArcaneFCMMessage> class abstract

Inheritance
  • Object
  • Service
  • StatelessService
  • ArcaneFCMService

Constructors

ArcaneFCMService.new()

Properties

deviceInfo ↔ BaseDeviceInfo?
getter/setter pair
di ↔ DeviceInfoPlugin
getter/setter pair
fcmTokenRefreshSubscription StreamSubscription<String>?
getter/setter pair
fn ↔ FlutterLocalNotificationsPlugin
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String
no setterinherited
notificationHandlers Map<Type, ArcaneFCMHandler<N>>
getter/setter pair
notificationQueue Queue<N>
final
notificationQueueHandlers Map<String, VoidCallback>
final
notificationsAllowed bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state → ServiceState
no setterinherited

Methods

handleNotification(BuildContext context, N notification) Future<void>
handleNotificationQueue(BuildContext context) Future<void>
invalidateTokens() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notificationFromMap(Map<String, dynamic> map) → N
onBind() Future<void>
onRegisterNotificationHandlers() Map<Type, ArcaneFCMHandler<N>>
onSignOut() Future<void>
onStart() → void
inherited
onStartupTask() Future<void>
override
onStop() → void
inherited
onUnbind() Future<void>
readUserDevices(String user) Future<List<FCMDeviceInfo>>
receiveFCMNotificationResponse(RemoteMessage message) → void
receiveLocalNotificationResponse(NotificationResponse notificationResponse) → void
receiveNotificationResponse(String? payload) → void
registerToken([String? newToken]) Future<bool>
restartService() → void
inherited
sendLocalNotification({required String title, required String body, required Map<String, dynamic> payload}) Future<void>
setupFCMNotifications() Future<void>
setupLocalNotifications() Future<void>
startService() → void
inherited
stopService() → void
inherited
toString() String
A string representation of this object.
inherited
tryHandleNotificationQueue() Future<void>
writeUserDevices(String user, List<FCMDeviceInfo> devices) Future<void>

Operators

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