appsonair_flutter_apppush library

Classes

AppPushService
Entry point for the AppsOnAir push notification SDK.
AppsOnAirDebugManager
AppPushService.Debug — logging configuration.
AppsOnAirNotificationsManager
AppPushService.Notifications — permission, foreground display, taps, and delivered-notification management.
AppsOnAirPushSubscription
AppsOnAirUserManager.pushSubscription — opt-in/opt-out and the device's current push token.
AppsOnAirUserManager
AppPushService.User — identity, tags, aliases, email, language.
NotificationClickEvent
Fired when the user taps a notification or one of its action buttons.
NotificationWillDisplayEvent
Fired for a notification that arrives while the app is in the foreground. Call preventDefault synchronously inside your listener to suppress the system notification display; otherwise it is shown automatically.
PushNotification
Data carried by a received or tapped push notification.
PushSubscriptionChangedState
Before/after pair delivered to push-subscription observers.
PushSubscriptionState
Snapshot of the device's push subscription state.
UserChangedState
Delivered to user-state observers after AppPushService.login/.logout().

Enums

LogLevel
Logging verbosity for AppsOnAirDebugManager.logLevel.

Typedefs

NotificationClickListener = void Function(NotificationClickEvent event)
Signature for AppsOnAirNotificationsManager.addClickListener.
NotificationPermissionListener = void Function(bool granted)
Signature for AppsOnAirNotificationsManager.addPermissionObserver.
NotificationReceivedListener = void Function(PushNotification notification)
Signature for AppsOnAirNotificationsManager.addNotificationReceivedListener. Fires when a push notification arrives while the app is in the foreground. Does not fire for background or silent (data-only) pushes — use SilentPushListener for those.
NotificationWillDisplayListener = void Function(NotificationWillDisplayEvent event)
Signature for AppsOnAirNotificationsManager.addForegroundWillDisplayListener.
PushSubscriptionListener = void Function(PushSubscriptionChangedState state)
Signature for AppsOnAirPushSubscription.addObserver.
SilentPushListener = void Function(Map<String, dynamic> data)
Signature for AppPushService.setSilentPushListener.
UserStateListener = void Function(UserChangedState state)
Signature for AppsOnAirUserManager.addObserver.