---
title: WebPlugIn
framework: Objective-C Runtime
role: collectionGroup
role_heading: API Collection
path: objectivec/webplugin
---

# WebPlugIn

The WebPlugIn informal protocol defines methods that enable interaction between an application using the WebKit framework and any WebKit-based plug-ins it may use.

## Topics

### Accessing the Scripting Environment

- [objectForWebScript](objectivec/nsobject-swift.class/objectforwebscript.md)

### Using Plug-in State Information

- [webPlugInSetIsSelected(_:)](objectivec/nsobject-swift.class/webpluginsetisselected(_:).md)

### Controlling the Plug-in

- [webPlugInDestroy()](objectivec/nsobject-swift.class/webplugindestroy().md)
- [webPlugInInitialize()](objectivec/nsobject-swift.class/webplugininitialize().md)
- [webPlugInStart()](objectivec/nsobject-swift.class/webpluginstart().md)
- [webPlugInStop()](objectivec/nsobject-swift.class/webpluginstop().md)

### Main resource messages

- [webPlugInMainResourceDidFailWithError(_:)](objectivec/nsobject-swift.class/webpluginmainresourcedidfailwitherror(_:).md)
- [webPlugInMainResourceDidFinishLoading()](objectivec/nsobject-swift.class/webpluginmainresourcedidfinishloading().md)
- [webPlugInMainResourceDidReceive(_:)](objectivec/nsobject-swift.class/webpluginmainresourcedidreceive(_:)-5b6f6.md)
- [webPlugInMainResourceDidReceive(_:)](objectivec/nsobject-swift.class/webpluginmainresourcedidreceive(_:)-6x7b9.md)

## See Also

### Interacting with Web Plug-ins

- [WebPlugInContainer](objectivec/webplugincontainer.md)
