DotNetBrowser
1.21.5
|
Represents object that contains information about browser notification, stores notification state data and provides functionality that allows user to perform operations with notification (click, closeInternal, etc.) and listen browser events associated with this notification instance. More...
Public Member Functions | |
void | Close () |
Informs browser that this notification was closed by user and marks it as Closed. See Closed. Does nothing if this notification has been already closed or if browser instance in which context this notification was created has been disposed or reloaded. More... | |
void | Click () |
Informs browser that this notification was clicked by user. More... | |
Properties | |
string | Url [get] |
Gets notification URL. More... | |
string | Title [get] |
Gets notification title or empty string if notification doesn't have title. More... | |
string | Message [get] |
Gets notification message or empty string if notification doesn't have message. More... | |
NotificationType | Type [get] |
Gets notification type. More... | |
bool | Closed [get] |
Informs about the state of the notification. Closed notification will not receive and proceed events from browser and will do nothing on public method invocations. Notification can be closed by user invoking the Close() method or via JavaScript code Notification.close(). More... | |
Events | |
NotificationOnCloseHandler | OnClose |
An event that indicates that the notification has been closed. More... | |
Represents object that contains information about browser notification, stores notification state data and provides functionality that allows user to perform operations with notification (click, closeInternal, etc.) and listen browser events associated with this notification instance.
If some browser instance has been disposed or reloaded than all notifications that were created in the scope of this browser instance context would be marked as closed and all notification event listeners associated with this notification would be informed about it.
void DotNetBrowser.Notification.Click | ( | ) |
Informs browser that this notification was clicked by user.
InvalidOperationException | if this notification has been already closed or if browser instance in which context this notification was created has been disposed or reloaded. |
void DotNetBrowser.Notification.Close | ( | ) |
Informs browser that this notification was closed by user and marks it as Closed. See Closed. Does nothing if this notification has been already closed or if browser instance in which context this notification was created has been disposed or reloaded.
|
get |
Informs about the state of the notification. Closed notification will not receive and proceed events from browser and will do nothing on public method invocations. Notification can be closed by user invoking the Close() method or via JavaScript code Notification.close().
|
get |
Gets notification message or empty string if notification doesn't have message.
|
get |
Gets notification title or empty string if notification doesn't have title.
|
get |
Gets notification type.
|
get |
Gets notification URL.
NotificationOnCloseHandler DotNetBrowser.Notification.OnClose |
An event that indicates that the notification has been closed.