OLD | NEW |
| (Empty) |
1 | |
2 class _NotificationCenterImpl extends _DOMTypeBase implements NotificationCenter
{ | |
3 _NotificationCenterImpl._wrap(ptr) : super._wrap(ptr); | |
4 | |
5 int checkPermission() { | |
6 return _wrap(_ptr.checkPermission()); | |
7 } | |
8 | |
9 Notification createHTMLNotification(String url) { | |
10 return _wrap(_ptr.createHTMLNotification(_unwrap(url))); | |
11 } | |
12 | |
13 Notification createNotification(String iconUrl, String title, String body) { | |
14 return _wrap(_ptr.createNotification(_unwrap(iconUrl), _unwrap(title), _unwr
ap(body))); | |
15 } | |
16 | |
17 void requestPermission(VoidCallback callback) { | |
18 _ptr.requestPermission(_unwrap(callback)); | |
19 return; | |
20 } | |
21 } | |
OLD | NEW |