RuntimeLocalNotificationMasamuneAdapter class
MasamuneAdapter
to receive local PUSH notifications for testing.
テスト用のローカルPUSH通知を受信するためのMasamuneAdapter
です。
- Inheritance
-
- Object
- MasamuneAdapter
- LocalNotificationMasamuneAdapter
- RuntimeLocalNotificationMasamuneAdapter
Constructors
-
RuntimeLocalNotificationMasamuneAdapter({List<
LoggerAdapter> loggerAdapters = const [], FutureOr<void> onLink(Uri? link)?, required String androidNotificationChannelId, required String androidNotificationChannelTitle, required String androidNotificationChannelDescription, String defaultTimezone = "UTC", LocalNotification? localNotification, ModelAdapter? modelAdapter}) -
MasamuneAdapter
to receive local PUSH notifications for testing.const
Properties
- androidDefaultIcon → String
-
Android default icon.
finalinherited
- 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
- defaultTimezone → String
-
Default time zone.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- localNotification → LocalNotification?
-
Specify the object of LocalNotification.
finalinherited
-
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
-
onLink
→ (FutureOr<
void> Function(Uri? link)?) -
Callback when the URL is launched.
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
Methods
-
addSchedule(
String uid, {required String title, required String text, required DateTime time, int? badgeCount, LocalNotificationRepeatSettings repeat = LocalNotificationRepeatSettings.none, NotificationSound sound = NotificationSound.defaultSound, DynamicMap? data, Uri? link, String? timezone}) → Future< int?> -
Add a schedule.
override
-
listen(
) → Future< int?> -
Initialization. If the application is launched from a notification, the content of the notification is retrieved.
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
-
removeAllSchedule(
) → Future< void> -
Remove all schedules.
override
-
removeSchedule(
String uid) → Future< int?> -
Remove the schedule.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited