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 crate feature objc2-app-kit
and macOS only.
unsafe fn plugInViewWithArguments( arguments: Option<&NSDictionary>, mtm: MainThreadMarker, ) -> Option<Retained<NSView>>
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.