AppwinNotificationsMethodChannel class

Method-channel implementation of AppwinNotificationsPlatform.

Registered automatically; you should not need to construct one. It is public so a test can reach methodChannel and stub the native side.

Inheritance

Constructors

AppwinNotificationsMethodChannel()
Creates the default implementation.

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
Channel shared with the native plugins, named appwin_notifications on both sides. Exposed for tests, which stub it rather than the whole platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetchPendingMessages() Future<List<AppwinInAppMessage>>
The messages waiting, unpresented. See AppwinNotifications.fetchPendingMessages.
override
getPlatformVersion() Future<String?>
Host OS and version, for checking the bridge is alive. See AppwinNotifications.getPlatformVersion.
override
initialize() Future<AppwinInitResult>
Whether this app may use Notifications. See AppwinNotifications.initialize.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
presentPendingMessages() Future<void>
Presents waiting messages in the SDK's UI. See AppwinNotifications.presentPendingMessages.
override
registerPushToken({required String token, bool pushOptIn = true}) Future<void>
Registers this device's push token. See AppwinNotifications.registerPushToken.
override
start({bool requestPushPermission = true}) Future<void>
Hooks lifecycle, push and in-app presentation. See AppwinNotifications.start.
override
stop() Future<void>
Unhooks what start installed. See AppwinNotifications.stop.
override
syncOnAppOpen() Future<List<AppwinInAppMessage>>
Reports an app open and returns what it triggered. See AppwinNotifications.syncOnAppOpen.
override
toString() String
A string representation of this object.
inherited
track({required String deliveryId, required AppwinTrackEvent event, int? buttonIndex}) Future<void>
Reports what became of a message. See AppwinNotifications.track.
override
trackEvent({required AppwinAutomationEvent event, String? eventName, Map<String, String>? properties}) Future<void>
Reports a moment a campaign can trigger on. See AppwinNotifications.trackEvent.
override

Operators

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