pub trait WKUserContentController: Sized {
    // Required methods
    unsafe fn init(self) -> id;
    unsafe fn addScriptMessageHandler(self, message_handler: id, name: id) -> id;

    // Provided method
    unsafe fn alloc(_: Self) -> id { ... }
}

Required Methods§

source

unsafe fn init(self) -> id

Safety

All the FFI functions are unsafe.

source

unsafe fn addScriptMessageHandler(self, message_handler: id, name: id) -> id

Safety

All the FFI functions are unsafe.

message_handler should be a WKScriptMessageHandler and name an NSString.

make_new_handler is provided to create WKScriptMessageHandlers from closures, but it’s also not safe.

Provided Methods§

source

unsafe fn alloc(_: Self) -> id

Safety

All the FFI functions are unsafe.

Implementations on Foreign Types§

source§

impl WKUserContentController for id

source§

unsafe fn init(self) -> id

source§

unsafe fn addScriptMessageHandler(self, message_handler: id, name: id) -> id

Implementors§