DotNetBrowser  1.14
Public Member Functions | Properties | Events | List of all members
DotNetBrowser.Notification Class Reference

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...
 

Detailed Description

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.

Member Function Documentation

void DotNetBrowser.Notification.Click ( )

Informs browser that this notification was clicked by user.

Exceptions
InvalidOperationExceptionif 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.

Property Documentation

bool DotNetBrowser.Notification.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().

string DotNetBrowser.Notification.Message
get

Gets notification message or empty string if notification doesn't have message.

string DotNetBrowser.Notification.Title
get

Gets notification title or empty string if notification doesn't have title.

NotificationType DotNetBrowser.Notification.Type
get

Gets notification type.

string DotNetBrowser.Notification.Url
get

Gets notification URL.

Event Documentation

NotificationOnCloseHandler DotNetBrowser.Notification.OnClose

An event that indicates that the notification has been closed.