Edytuj

Udostępnij za pośrednictwem


IWKScriptMessageHandler Interface

Definition

Interface representing the required methods (if any) of the protocol WKScriptMessageHandler.

[Foundation.Protocol(Name="WKScriptMessageHandler", WrapperType=typeof(WebKit.WKScriptMessageHandlerWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IWKScriptMessageHandler : IDisposable, ObjCRuntime.INativeObject
type IWKScriptMessageHandler = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

This interface contains the required methods (if any) from the protocol defined by WKScriptMessageHandler.

If developers create classes that implement this interface, the implementation methods will automatically be exported to Objective-C with the matching signature from the method defined in the WKScriptMessageHandler protocol.

Optional methods (if any) are provided by the T:WebKit.WKScriptMessageHandler_Extensions class as extension methods to the interface, allowing developers to invoke any optional methods on the protocol.

Properties

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

DidReceiveScriptMessage(WKUserContentController, WKScriptMessage)

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

Applies to