RemoteNotificationMasamuneAdapter class abstract

MasamuneAdapter for receiving remote PUSH notifications.

リモートPUSH通知を受信するためのMasamuneAdapterです。

Inheritance
  • Object
  • MasamuneAdapter
  • RemoteNotificationMasamuneAdapter
Implementers

Constructors

RemoteNotificationMasamuneAdapter({FunctionsAdapter? functionsAdapter, ModelAdapter? modelAdapter, required String androidNotificationChannelId, required String androidNotificationChannelTitle, required String androidNotificationChannelDescription, RemoteNotification? remoteNotification, List<String> subscribeOnBoot = const [], List<LoggerAdapter> loggerAdapters = const [], FutureOr<void> onLink(Uri? link, bool onOpenedApp)?, FutureOr<void> onRetrievedToken(String token)?})
MasamuneAdapter for receiving remote PUSH notifications.
const

Properties

androidNotificationChannelDescription String
This is a description of the notification channels supported only on Android.
final
androidNotificationChannelId String
Notification channel IDs supported only by Android.
final
androidNotificationChannelTitle String
This is the title of a notification channel that is only supported by Android.
final
functionsAdapter → FunctionsAdapter?
Specify FunctionsAdapter if there are functions to be executed on the server side.
final
hashCode int
The hash code for this object.
no setterinherited
loggerAdapters List<LoggerAdapter>
Adapters can be defined to add logger functionality.
final
modelAdapter → ModelAdapter?
Specify a ModelAdapter to register the PUSH notification schedule.
final
Observers can be set up to monitor transitions between pages.
no setterinherited
Callback when the URL is launched.
final
onRetrievedToken → (FutureOr<void> Function(String token)?)
Callback when token is obtained.
final
remoteNotification RemoteNotification?
Specify the object of RemoteNotification.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
runZonedGuarded bool
If you set this to true, you can wrap runApp with runZonedGuarded.
no setterinherited
subscribeOnBoot List<String>
If remoteNotification is set, specify the list of topics to subscribe to when onMaybeBoot is executed.
final

Methods

getToken() Future<String?>
Acquisition of tokens.
listen({required Future<void> onMessage(NotificationValue value), required Future<void> onMessageOpenedApp(NotificationValue value)}) Future<RemoteNotificationListenResponse?>
Initialize push notifications.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onBuildApp(BuildContext context, Widget app) Widget
Widgets can be added during the build of MasamuneApp.
override
onError(Object error, StackTrace stackTrace) → void
You can describe the process when runZonedGuarded is set to true.
inherited
onInitScope(MasamuneAdapter adapter) → void
Called when initializing MasamuneAdapterScope.
override
onMaybeBoot() FutureOr<void>
It may be called during application initialization.
override
onPreRunApp() FutureOr<void>
You can describe the process before runApp.
inherited
subscribe(String topic) Future<void>
Subscribe to a topic named topic.
toString() String
A string representation of this object.
inherited
unsubscribe(String topic) Future<void>
Unsubscribe from a topic name named topic.

Operators

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

Static Properties

primary RemoteNotificationMasamuneAdapter
You can retrieve the RemoteNotificationMasamuneAdapter first given by MasamuneAdapterScope.
no setter