Trait WKScriptMessageHandler

Source
pub unsafe trait WKScriptMessageHandler: NSObjectProtocol {
    // Provided method
    unsafe fn userContentController_didReceiveScriptMessage(
        &self,
        user_content_controller: &WKUserContentController,
        message: &WKScriptMessage,
    )
       where Self: Sized + Message { ... }
}
👎Deprecated: icrate::WebKit has been moved to objc2-web-kit
Available on crate feature WebKit only.

Provided Methods§

Source

unsafe fn userContentController_didReceiveScriptMessage( &self, user_content_controller: &WKUserContentController, message: &WKScriptMessage, )
where Self: Sized + Message,

👎Deprecated: icrate::WebKit has been moved to objc2-web-kit
Available on crate features WebKit_WKScriptMessage and WebKit_WKUserContentController only.

Trait Implementations§

Source§

impl ProtocolType for dyn WKScriptMessageHandler

Source§

const NAME: &'static str = "WKScriptMessageHandler"

The name of the Objective-C protocol that this type represents.
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn WKScriptMessageHandler

Implementations on Foreign Types§

Source§

impl<T> WKScriptMessageHandler for ProtocolObject<T>

Implementors§