inactiveSchedulingPolicy
A policy you set to specify how a web view that’s not in a window handles tasks.
Declaration
var inactiveSchedulingPolicy: WKPreferences.InactiveSchedulingPolicy { get set }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.