Beispiel #1
0
        public virtual void DidReceiveScriptMessage(global::WebKit.WKUserContentController userContentController, global::WebKit.WKScriptMessage message)
        {
            var userContentController__handle__ = userContentController.GetNonNullHandle(nameof(userContentController));
            var message__handle__ = message.GetNonNullHandle(nameof(message));

            if (IsDirectBinding)
            {
                global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr(this.Handle, Selector.GetHandle("userContentController:didReceiveScriptMessage:"), userContentController__handle__, message__handle__);
            }
            else
            {
                global::ApiDefinition.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(this.SuperHandle, Selector.GetHandle("userContentController:didReceiveScriptMessage:"), userContentController__handle__, message__handle__);
            }
        }
Beispiel #2
0
 public virtual void DidReceiveScriptMessage(global::WebKit.WKUserContentController userContentController, global::WebKit.WKScriptMessage message)
 {
     if (userContentController == null)
     {
         throw new ArgumentNullException("userContentController");
     }
     if (message == null)
     {
         throw new ArgumentNullException("message");
     }
     if (IsDirectBinding)
     {
         global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr(this.Handle, Selector.GetHandle("userContentController:didReceiveScriptMessage:"), userContentController.Handle, message.Handle);
     }
     else
     {
         global::ApiDefinition.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(this.SuperHandle, Selector.GetHandle("userContentController:didReceiveScriptMessage:"), userContentController.Handle, message.Handle);
     }
 }