AppwinNotificationsPlatform class abstract

Contract each platform implements.

Host apps go through AppwinNotifications.instance instead. It is public so a platform package, or a test, can provide its own instance.

Inheritance
  • Object
  • PlatformInterface
  • AppwinNotificationsPlatform
Implementers

Constructors

AppwinNotificationsPlatform()
Constructs an implementation, registering the token that PlatformInterface uses to reject subclasses built by other means.

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

fetchPendingMessages() → Future<List<AppwinInAppMessage>>
The messages waiting, unpresented. See AppwinNotifications.fetchPendingMessages.
getPlatformVersion() → Future<String?>
Host OS and version, for checking the bridge is alive. See AppwinNotifications.getPlatformVersion.
initialize() → Future<AppwinInitResult>
Whether this app may use Notifications. See AppwinNotifications.initialize.
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.
start({bool requestPushPermission = true, bool installsNotificationDelegate = true}) → Future<void>
Hooks lifecycle, push and in-app presentation. See AppwinNotifications.start.
stop() → Future<void>
Unhooks what start installed. See AppwinNotifications.stop.
syncOnAppOpen() → Future<List<AppwinInAppMessage>>
Reports an app open and returns what it triggered. See AppwinNotifications.syncOnAppOpen.
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.
trackEvent({required AppwinAutomationEvent event, String? eventName, Map<String, String>? properties}) → Future<void>
Reports a moment a campaign can trigger on. See AppwinNotifications.trackEvent.

Operators

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

Static Properties

instance ↔ AppwinNotificationsPlatform
The implementation in use, method channel by default.
getter/setter pair