webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Instance Methods | Properties | List of all members
NSObject(WebPlugIn) Category Reference

#import <WebPlugin.h>

Instance Methods

(void- webPlugInInitialize
 
(void- webPlugInStart
 
(void- webPlugInStop
 
(void- webPlugInDestroy
 
(void- webPlugInSetIsSelected:
 
(void- webPlugInMainResourceDidReceiveResponse:
 
(void- webPlugInMainResourceDidReceiveData:
 
(void- webPlugInMainResourceDidFailWithError:
 
(10_6) - WEBKIT_AVAILABLE_MAC
 

Properties

id objectForWebScript
 

Detailed Description

WebPlugIn is an informal protocol that enables interaction between an application and web related plug-ins it may contain.

Method Documentation

◆ WEBKIT_AVAILABLE_MAC()

- (10_6) WEBKIT_AVAILABLE_MAC

webPlugInMainResourceDidFinishLoading Called on the plug-in when WebKit receives -connectionDidFinishLoading: for the plug-in's main resource. This method is only sent to the plug-in if the WebPlugInShouldLoadMainResourceKey argument passed to the plug-in was NO.

◆ webPlugInDestroy()

- (void) webPlugInDestroy

webPlugInDestroy Tell the plug-in perform cleanup and prepare to be deallocated. The plug-in typically releases memory and other resources in this method. If the plug-in has retained the WebPlugInContainer, it must release it in this mehthod. This method must be only called once per instance of the plug-in object. No other methods in this interface may be called after the application has called webPlugInDestroy.

◆ webPlugInInitialize()

- (void) webPlugInInitialize

webPlugInInitialize Tell the plug-in to perform one-time initialization. This method must be only called once per instance of the plug-in object and must be called before any other methods in this protocol.

◆ webPlugInMainResourceDidFailWithError:()

- (void) webPlugInMainResourceDidFailWithError: (10_6)  WEBKIT_AVAILABLE_MAC

webPlugInMainResourceDidFailWithError: Called on the plug-in when WebKit receives -connection:didFailWithError: for the plug-in's main resource. This method is only sent to the plug-in if the WebPlugInShouldLoadMainResourceKey argument passed to the plug-in was NO.

◆ webPlugInMainResourceDidReceiveData:()

- (void) webPlugInMainResourceDidReceiveData: (10_6)  WEBKIT_AVAILABLE_MAC

webPlugInMainResourceDidReceiveData: Called on the plug-in when WebKit recieves -connection:didReceiveData: for the plug-in's main resource. This method is only sent to the plug-in if the WebPlugInShouldLoadMainResourceKey argument passed to the plug-in was NO.

◆ webPlugInMainResourceDidReceiveResponse:()

- (void) webPlugInMainResourceDidReceiveResponse: (10_6)  WEBKIT_AVAILABLE_MAC

webPlugInMainResourceDidReceiveResponse: Called on the plug-in when WebKit receives -connection:didReceiveResponse: for the plug-in's main resource. This method is only sent to the plug-in if the WebPlugInShouldLoadMainResourceKey argument passed to the plug-in was NO.

◆ webPlugInSetIsSelected:()

- (void) webPlugInSetIsSelected: (BOOL isSelected

webPlugInSetIsSelected: Informs the plug-in whether or not it is selected. This is typically used to allow the plug-in to alter it's appearance when selected.

◆ webPlugInStart()

- (void) webPlugInStart

webPlugInStart Tell the plug-in to start normal operation. The plug-in usually begins drawing, playing sounds and/or animation in this method. This method must be called before calling webPlugInStop. This method may called more than once, provided that the application has already called webPlugInInitialize and that each call to webPlugInStart is followed by a call to webPlugInStop.

◆ webPlugInStop()

- (void) webPlugInStop

webPlugInStop Tell the plug-in to stop normal operation. webPlugInStop must be called before this method. This method may be called more than once, provided that the application has already called webPlugInInitialize and that each call to webPlugInStop is preceded by a call to webPlugInStart.

Property Documentation

◆ objectForWebScript

- objectForWebScript
readnonatomicstrong

objectForWebScript is used to expose a plug-in's scripting interface. The methods of the object are exposed to the script environment. See the WebScripting informal protocol for more details.

Returns
Returns the object that exposes the plug-in's interface. The class of this object can implement methods from the WebScripting informal protocol.

The documentation for this category was generated from the following file: