Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
web:notifier [2018/02/06 13:15]
agcyphers [Events]
web:notifier [2019/10/23 00:53] (current)
Line 13: Line 13:
 ^ Definition      ^ Description       ^ ^ Definition      ^ Description       ^
 | AccessChanged() | Signifies that the user has elected to allow notifications. | | AccessChanged() | Signifies that the user has elected to allow notifications. |
-| NotificationClicked( notificationName as [[http://developer.xojo.com/string|String]] ) | Fires when the user clicks a notification. | +| NotificationClicked( notificationName as String ) | Fires when the user clicks a notification. | 
-| NotificationError( notificationName as [[http://developer.xojo.com/string|String]] ) | 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. |+| NotificationError( notificationName as String ) | 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. |
 ==== Methods ==== ==== Methods ====
 ^ Definition      ^ Description       ^ ^ Definition      ^ Description       ^
-ShowNotification( notificationName as [[http://developer.xojo.com/string|String]], Title as [[http://developer.xojo.com/string|String]], Body as [[http://developer.xojo.com/string|String]], CloseDelay as [[http://developer.xojo.com/integer|Integer]] = 0, Icon as [[http://developer.xojo.com/string|String]] = "" | Shows a desktop notification (or a request for access) on the user's computer.  Icon should be a URL. |+CloseAll() | Closes all notifications currently open. | 
 +| CoseNotification( notificationName as String ) | Closes notification(s) currently open whose notificationName match the parameter. | 
 +| ShowNotification( notificationName as String, Title as String, Body as String, CloseDelay as Integer = 0, Icon as String = "", ParamArray Vibration as Integer | 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 ==== ==== Properties ====
 ^ Name      ^ Type       ^ Default Value       ^ Description       ^ ^ Name      ^ Type       ^ Default Value       ^ Description       ^
-| CanNotify | [[http://developer.xojo.com/boolean|Boolean]] | False (Read-Only) | If True, the user has elected to receive notifications from your site. | +| CanNotify | Boolean | False (Read-Only) | If True, the user has elected to receive notifications from your site. | 
-| Supported | [[http://developer.xojo.com/boolean|Boolean]] | False (Read-Only) | If True, the user's browser supports notifications. |+| Supported | Boolean | False (Read-Only) | If True, the user's browser supports notifications. |
  
 ==== Examples ==== ==== Examples ====
 There are currently no examples for this class. There are currently no examples for this class.