LocalNotificationMasamuneAdapter class abstract
MasamuneAdapter
for receiving local PUSH notifications.
ローカルPUSH通知を受信するためのMasamuneAdapter
です。
- Inheritance
-
- Object
- MasamuneAdapter
- LocalNotificationMasamuneAdapter
- Implementers
Constructors
-
LocalNotificationMasamuneAdapter({LocalNotification? localNotification, ModelAdapter? modelAdapter, List<
LoggerAdapter> loggerAdapters = const [], String androidDefaultIcon = "@mipmap/ic_launcher", required String androidNotificationChannelId, required String androidNotificationChannelTitle, required String androidNotificationChannelDescription, FutureOr<void> onLink(Uri? link)?, String defaultTimezone = "UTC"}) -
MasamuneAdapter
for receiving local PUSH notifications.const
Properties
- androidDefaultIcon → String
-
Android default icon.
final
- 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
- defaultTimezone → String
-
Default time zone.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- localNotification → LocalNotification?
-
Specify the object of LocalNotification.
final
-
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
-
onLink
→ (FutureOr<
void> Function(Uri? link)?) -
Callback when the URL is launched.
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
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.
-
listen(
) → Future< int?> - Initialization. If the application is launched from a notification, the content of the notification is retrieved.
-
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.
inherited
-
onPreRunApp(
) → FutureOr< void> -
You can describe the process before runApp.
inherited
-
removeAllSchedule(
) → Future< void> - Remove all schedules.
-
removeSchedule(
String uid) → Future< int?> - Remove the schedule.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- primary → LocalNotificationMasamuneAdapter
-
You can retrieve the LocalNotificationMasamuneAdapter first given by
MasamuneAdapterScope
.no setter