RuntimeRemoteNotificationMasamuneAdapter class

MasamuneAdapter to receive remote PUSH notifications for testing.

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

Inheritance

Constructors

RuntimeRemoteNotificationMasamuneAdapter({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 to receive remote PUSH notifications for testing.
const

Properties

androidNotificationChannelDescription String
This is a description of the notification channels supported only on Android.
finalinherited
androidNotificationChannelId String
Notification channel IDs supported only by Android.
finalinherited
androidNotificationChannelTitle String
This is the title of a notification channel that is only supported by Android.
finalinherited
functionsAdapter → FunctionsAdapter?
Specify FunctionsAdapter if there are functions to be executed on the server side.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
loggerAdapters List<LoggerAdapter>
Adapters can be defined to add logger functionality.
finalinherited
modelAdapter → ModelAdapter?
Specify a ModelAdapter to register the PUSH notification schedule.
finalinherited
Observers can be set up to monitor transitions between pages.
no setterinherited
Callback when the URL is launched.
finalinherited
onRetrievedToken → (FutureOr<void> Function(String token)?)
Callback when token is obtained.
finalinherited
remoteNotification RemoteNotification?
Specify the object of RemoteNotification.
finalinherited
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.
finalinherited

Methods

getToken() Future<String?>
Acquisition of tokens.
override
listen({required Future<void> onMessage(NotificationValue value), required Future<void> onMessageOpenedApp(NotificationValue value)}) Future<RemoteNotificationListenResponse?>
Initialize push notifications.
override
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.
inherited
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.
inherited
onMaybeBoot() FutureOr<void>
It may be called during application initialization.
inherited
onPreRunApp() FutureOr<void>
You can describe the process before runApp.
inherited
subscribe(String topic) Future<void>
Subscribe to a topic named topic.
override
toString() String
A string representation of this object.
inherited
unsubscribe(String topic) Future<void>
Unsubscribe from a topic name named topic.
override

Operators

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