public void RegisterLocalCallback(string name, Action <string> callback) { if (LocalRegisteredActions.ContainsKey(name)) { return; } LocalRegisteredActions.Add(name, callback); WebViewControlDelegate.NotifyCallbacksChanged(this, name, false); }
public static void RegisterGlobalCallback(string name, Action <string> callback) { if (GlobalRegisteredActions.ContainsKey(name)) { return; } GlobalRegisteredActions.Add(name, callback); WebViewControlDelegate.NotifyCallbacksChanged(null, name, true); }