Adds a delegate to the browser.
Declaring type: Browser
Namespace: Vrml.EAI
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void AddBrowserDelegate (
        BrowserDelegate browserDelegate
) 
Parameters
browserDelegate
The delegate that receives browser events.
Collapse/Expand Remarks
You can add methods that conform to the method signature defined by the BrowserDelegate as delegates to the Browser object. These methods get called whenever the status of the X3D browser changes.
Collapse/Expand Example
The following example demonstrates how to add a method as a browser delegate:
C#
public class MyClass
{
    private static void OnBrowserEvent(Vrml.EAI.Event.BrowserEvent evt)
    {
        ...
    }
            
    public static void Main(string[] args)
    {
        ...
        Vrml.EAI.Browser browser = ...;
        browser.AddBrowserDelegate(OnBrowserEvent);
        ...
        browser.RemoveBrowserDelegate(OnBrowserEvent);
        ...
    }
}