# GraffitiNotifier
Class Inherits GraffitiWebUIControl
## About
Easily display browser-native notifications to your users' desktop.
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Web
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| AccessChanged | (None) | (None) | Signifies that the user has elected to allow notifications. |
| NotificationClicked | notificationName as String | (None) | Fires when the user clicks a notification. |
| NotificationError | notificationName as String | (None) | Signifies that there was an error displaying the notification. Either the browser doesn't support desktop notifications, or the user elected not to receive them. |
| Open | (None) | (None) | (None) |
| Shown | (None) | (None) | (None) |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| CloseAll | (None) | (None) | Closes all notifications currently open. |
| CloseNotification | notificationName as String | (None) | Requests that the client browser close the specified notification. |
| Constructor | (None) | (None) | Creates a new instance of the class. |
| ShowNotification | notificationName as String <br> Title as String <br> Body as String <br> CloseDelay as Integer = 0 <br> Icon as String = "" <br> Silent as Boolean = True <br> ParamArray Vibrations as Integer | (None) | Shows a desktop notification (or a request for access) on the user's computer. Icon should be a URL . Vibration should be a list of parameters specifying length of vibrations in milliseconds. (100, 200, 300) would be a vibration of 100 milliseconds, a pause, a vibration of 200 milliseconds, a pause, then a vibration of 300 milliseconds. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Supported | Boolean | (None) | If True, the user's browser supports notifications. |