Trait WebPlugInViewFactory

Source
pub unsafe trait WebPlugInViewFactory: NSObjectProtocol {
    // Provided method
    unsafe fn plugInViewWithArguments(
        arguments: Option<&NSDictionary>,
        mtm: MainThreadMarker,
    ) -> Option<Retained<NSView>>
       where Self: Sized + ClassType { ... }
}
👎Deprecated
Available on crate feature WebPluginViewFactory only.
Expand description

WebPlugInViewFactory are used to create the NSView for a plug-in. The principal class of the plug-in bundle must implement this protocol.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn plugInViewWithArguments( arguments: Option<&NSDictionary>, mtm: MainThreadMarker, ) -> Option<Retained<NSView>>
where Self: Sized + ClassType,

👎Deprecated
Available on crate feature objc2-app-kit and macOS only.

Parameter arguments: The arguments dictionary with the mentioned keys and objects. This method is required to implement.

Returns: Returns an NSView object that conforms to the WebPlugIn informal protocol.

Trait Implementations§

Source§

impl ProtocolType for dyn WebPlugInViewFactory

Source§

const NAME: &'static str = "WebPlugInViewFactory"

The name of the Objective-C protocol that this type represents. Read more
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 WebPlugInViewFactory

Implementations on Foreign Types§

Source§

impl<T> WebPlugInViewFactory for ProtocolObject<T>

Implementors§