RemoteNotificationMasamuneAdapter class abstract

MasamuneAdapter for receiving remote PUSH notifications.

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

Inheritance
  • Object
  • MasamuneAdapter
  • RemoteNotificationMasamuneAdapter
Implementers

Constructors

RemoteNotificationMasamuneAdapter({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)?, bool listenOnBoot = false})
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
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.
final
loggerAdapters List<LoggerAdapter>
Adapters can be defined to add logger functionality.
final
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.
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
priority double
The priority of the adapter.
no setterinherited
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
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.
override
onMaybeBoot(BuildContext context) FutureOr<void>
It may be called during application initialization.
override
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.
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