OLD | NEW |
---|---|
1 <p class="warning"> | 1 <p class="warning"> |
2 <b>Warning: </b> | 2 <b>Warning: </b> |
3 Currently this API only works on ChromeOS and Windows. | 3 Currently this API only works on ChromeOS, Windows, and Mac. |
not at google - send to devlin
2013/08/28 21:43:16
This just leaves Linux, right? Does it make sense
not at google - send to devlin
2013/08/28 21:45:13
Maybe not; since it only recently works on mac. Ma
| |
4 </p> | 4 </p> |
5 | 5 |
6 <h2 id="usage">Usage</h2> | 6 <h2 id="usage">Usage</h2> |
7 | 7 |
8 <p> | 8 <p> |
9 To use this API, | 9 To use this API, |
10 call the $ref:notifications.create method, | 10 call the $ref:notifications.create method, |
11 passing in the notification details | 11 passing in the notification details |
12 via the <code>options</code> parameter: | 12 via the <code>options</code> parameter: |
13 </p> | 13 </p> |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 that respond to user actions. | 78 that respond to user actions. |
79 For example, | 79 For example, |
80 you can write an event handler to respond to an | 80 you can write an event handler to respond to an |
81 $ref:notifications.onButtonClicked event. | 81 $ref:notifications.onButtonClicked event. |
82 </p> | 82 </p> |
83 | 83 |
84 <p>Consider including event listeners and handlers within the | 84 <p>Consider including event listeners and handlers within the |
85 <a href="app_lifecycle.html#create_event_page">event page</a>, | 85 <a href="app_lifecycle.html#create_event_page">event page</a>, |
86 so that notifications can pop-up even when the app or extension isn't running. | 86 so that notifications can pop-up even when the app or extension isn't running. |
87 </p> | 87 </p> |
OLD | NEW |