Share via


IWKScriptMessageHandler Interface

Definition

Allows messages from JavaScript to be handled by the app.

[Foundation.Protocol(Name="WKScriptMessageHandler", WrapperType=typeof(WebKit.WKScriptMessageHandlerWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidReceiveScriptMessage", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(WebKit.WKUserContentController), typeof(WebKit.WKScriptMessage) }, Selector="userContentController:didReceiveScriptMessage:")]
public interface IWKScriptMessageHandler : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="WKScriptMessageHandler", WrapperType=typeof(WebKit.WKScriptMessageHandlerWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidReceiveScriptMessage", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(WebKit.WKUserContentController), typeof(WebKit.WKScriptMessage) }, Selector="userContentController:didReceiveScriptMessage:")>]
type IWKScriptMessageHandler = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Name Description
DidReceiveScriptMessage(WKUserContentController, WKScriptMessage)

Method that is called after a message is received from a script.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to

See also