---
title: "webPlugInSetIsSelected(_:)"
framework: Objective-C Runtime
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/webpluginsetisselected(_:)"
---

# webPlugInSetIsSelected(_:)

Controls plug-in behavior based on its selection.

## Declaration

```swift
func webPlugInSetIsSelected(_ isSelected: Bool)
```

## Parameters

- `isSelected`: If doc://com.apple.objectivec/documentation/ObjectiveC/YES, the plug-in is currently selected. Otherwise, it is not selected.

## Discussion

Discussion This may be used, for example, to change the plug-in’s appearance when it is selected by the user.
