IWKScriptMessageHandler Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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) | |