AmplifyPushNotifications class abstract

Implementation of the Amplify Push Notifications category.

  • Concrete implementation of the Plugin Interface
  • Communicates with native module via PushNotificationsHostApi

Constructors

AmplifyPushNotifications({required ServiceProviderClient serviceProviderClient, required Future<void> backgroundProcessor(), @visibleForTesting DependencyManager? dependencyManager})
Implementation of the Amplify Push Notifications category.

Properties

category → Category
The category implemented by this plugin.
no setterinherited
dependencies → DependencyManager
Global dependencies scoped to this plugin.
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
launchNotification → PushNotificationMessage?
no setter
onNotificationOpened Stream<PushNotificationMessage>
no setter
onNotificationReceivedInForeground Stream<PushNotificationMessage>
no setter
onTokenReceived Stream<String>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPlugin({required AmplifyAuthProviderRepository authProviderRepo}) Future<void>
Called when the plugin is added to the category.
inherited
cast<P extends AmplifyPluginInterface>() → P
Casts a plugin to a category-specific implementation.
inherited
configure({AmplifyConfig? config, required AmplifyAuthProviderRepository authProviderRepo}) Future<void>
Configures the plugin using the registered config.
getBadgeCount() Future<int>
getPermissionStatus() Future<PushNotificationPermissionStatus>
identifyUser({required String userId, UserProfile? userProfile}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onNotificationReceivedInBackground(OnRemoteMessageCallback callback) → void
reifyPluginOptions<T extends AWSDebuggable>({required Object? pluginOptions, required T defaultPluginOptions}) → T
Reifies pluginOptions as an instance of T.
inherited
requestPermissions({bool alert = true, bool badge = true, bool sound = true}) Future<bool>
reset() Future<void>
Resets the plugin by removing all traces of it from the device.
setBadgeCount(int badgeCount) → void
toString() String
A string representation of this object.
inherited

Operators

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