Skip to content

Commit 42e9da3

Browse files
committed
change readme
1 parent 7f58441 commit 42e9da3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
11
# iOS10-LocalNotification
2+
## Usage
3+
NotificationManager
4+
5+
NotificationManager.scheduleNotification(id: "标识", title: "通知测试", subtitle: "子标题", body: "风雨一夜花满楼", badgeCount: 10)
6+
7+
NotificationManager.pending { [weak self] value in
8+
print("\(value)未发送")
9+
self?.showAlert(title: "通知", message: "\(value)未发送")
10+
}
11+
12+
NotificationManager.delivered{ [weak self] value in
13+
self?.showAlert(title: "通知", message: "\(value)已发送")
14+
}
15+
16+
17+

0 commit comments

Comments
 (0)