---
title: inactiveSchedulingPolicy
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkpreferences/inactiveschedulingpolicy-swift.property
---

# inactiveSchedulingPolicy

A policy you set to specify how a web view that’s not in a window handles tasks.

## Declaration

```swift
var inactiveSchedulingPolicy: WKPreferences.InactiveSchedulingPolicy { get set }
```

## Discussion

Discussion Set this to indicate how a web view that’s not in a window handles tasks; for example, when the web view is in a background tab in a browser. The default value is WKPreferences.InactiveSchedulingPolicy.suspend. A web view that’s not in a window is exempted from this policy if it is playing media, performing media capture, or performing another user-interactive activity.

## See Also

### Setting Behavior Preferences

- [tabFocusesLinks](webkit/wkpreferences/tabfocuseslinks.md)
- [isTextInteractionEnabled](webkit/wkpreferences/istextinteractionenabled.md)
- [isElementFullscreenEnabled](webkit/wkpreferences/iselementfullscreenenabled.md)
- [WKPreferences.InactiveSchedulingPolicy](webkit/wkpreferences/inactiveschedulingpolicy-swift.enum.md)
