Contains information about a browser event.
C# |
---|
public class BrowserEvent |
|
|
Click here to see the list of members.
The following example shows the skeleton of a browser delegate, and
how the BrowserEvent object is used inside the delegate:
C# |
---|
private static void OnBrowserEvent(Vrml.EAI.Event.BrowserEvent evt)
{
// Get the Browser object whose status changed
Vrml.EAI.Browser browser = evt.Source;
switch (evt.ID)
{
case Vrml.EAI.Event.BrowserEvent.INITIALIZED:
// The browser finished to load a new scene
...
break;
case Vrml.EAI.Event.BrowserEvent.SHUTDOWN:
// The browser is about to unload a scene
...
break;
case Vrml.EAI.Event.BrowserEvent.URL_ERROR:
// Download from an URL failed
...
break;
case Vrml.EAI.Event.BrowserEvent.CONNECTION_ERROR:
// An error occurred when communicating with the browser
...
break;
}
}
|