addSchedule abstract method
Future<int?>
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,
Add a schedule.
Specify a unique ID for uid
. If this ID is duplicated, the previous schedule will be overwritten.
Specify the title of the notification in title
. Specify the message of the notification in the text
field.
Specify the date and time for notification in time
.
You can set the notification to repeat by specifying repeat
.
Return the ID of the notification when it is registered.
スケジュールを追加します。
uid
に一意のIDを指定します。このIDが重複すると以前のスケジュールが上書きされます。
title
に通知のタイトルを指定します。text
に通知のメッセージを指定します。
time
に通知を行う日時を指定します。
repeat
を指定することで通知を繰り返す設定を行うことができます。
通知が登録された時そのIDを返してください。
Implementation
Future<int?> 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,
});