RuntimeRemoteNotificationMasamuneAdapter class

MasamuneAdapter to receive remote PUSH notifications for testing.

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

Inheritance

Constructors

RuntimeRemoteNotificationMasamuneAdapter({required String androidNotificationChannelId, required String androidNotificationChannelTitle, required String androidNotificationChannelDescription, FunctionsAdapter? functionsAdapter, ModelAdapter? modelAdapter, 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
isTest bool
If this is true, it indicates that test adapters are set in TestMasamuneAdapterScope.setTestAdapters and it is in test mode.
no setterinherited
listenOnBoot bool
true if remoteNotification is set to true to start monitoring when onMaybeBoot is executed.
finalinherited
loggerAdapters List<LoggerAdapter>
Adapters can be defined to add logger functionality.
finalinherited
masamuneAdapters List<MasamuneAdapter>
You can define adapters to add features to the Masamune Framework.
no setterinherited
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
priority double
The priority of the adapter.
no setterinherited
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
onBuildPage(BuildContext context, Widget page) Widget
Returning Widget will build the widget.
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(BuildContext context) FutureOr<void>
It may be called during application initialization.
inherited
onPreRunApp(WidgetsBinding binding) FutureOr<void>
You can describe the process before runApp.
inherited
onRestarted() FutureOr<void>
It may be called when the application is restarted.
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