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