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§
Sourceunsafe fn plugInViewWithArguments(
arguments: Option<&NSDictionary>,
mtm: MainThreadMarker,
) -> Option<Retained<NSView>>
👎DeprecatedAvailable on macOS and crate feature objc2-app-kit only.
unsafe fn plugInViewWithArguments( arguments: Option<&NSDictionary>, mtm: MainThreadMarker, ) -> Option<Retained<NSView>>
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
argumentsgeneric should be of the correct type.argumentsmight not allowNone.
Trait Implementations§
Source§impl ProtocolType for dyn WebPlugInViewFactory
impl ProtocolType for dyn WebPlugInViewFactory
impl<T> ImplementedBy<T> for dyn WebPlugInViewFactory
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".