Skip to main content

WebPlugInViewFactory

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 macOS and crate feature objc2-app-kit 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.

§Safety
  • arguments generic should be of the correct type.
  • arguments might not allow None.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn WebPlugInViewFactory

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> WebPlugInViewFactory for ProtocolObject<T>

Implementors§