---
title: WebPage.Configuration
framework: webkit
role: symbol
role_heading: Structure
path: webkit/webpage/configuration
---

# WebPage.Configuration

A configuration type that specifies the preferences and behaviors of a webpage.

## Declaration

```swift
@MainActor struct Configuration
```

## Topics

### Initializers

- [init()](webkit/webpage/configuration/init().md)

### Instance Properties

- [allowsAirPlayForMediaPlayback](webkit/webpage/configuration/allowsairplayformediaplayback.md)
- [allowsImmersiveEnvironments](webkit/webpage/configuration/allowsimmersiveenvironments.md)
- [allowsInlinePredictions](webkit/webpage/configuration/allowsinlinepredictions.md)
- [applicationNameForUserAgent](webkit/webpage/configuration/applicationnameforuseragent.md)
- [dataDetectorTypes](webkit/webpage/configuration/datadetectortypes.md)
- [defaultNavigationPreferences](webkit/webpage/configuration/defaultnavigationpreferences.md)
- [deviceSensorAuthorization](webkit/webpage/configuration/devicesensorauthorization.md)
- [ignoresViewportScaleLimits](webkit/webpage/configuration/ignoresviewportscalelimits.md)
- [limitsNavigationsToAppBoundDomains](webkit/webpage/configuration/limitsnavigationstoappbounddomains.md)
- [loadsSubresources](webkit/webpage/configuration/loadssubresources.md)
- [mediaPlaybackBehavior](webkit/webpage/configuration/mediaplaybackbehavior-swift.property.md)
- [showsSystemScreenTimeBlockingView](webkit/webpage/configuration/showssystemscreentimeblockingview.md)
- [supportsAdaptiveImageGlyph](webkit/webpage/configuration/supportsadaptiveimageglyph.md)
- [suppressesIncrementalRendering](webkit/webpage/configuration/suppressesincrementalrendering.md)
- [upgradeKnownHostsToHTTPS](webkit/webpage/configuration/upgradeknownhoststohttps.md)
- [urlSchemeHandlers](webkit/webpage/configuration/urlschemehandlers.md)
- [userContentController](webkit/webpage/configuration/usercontentcontroller.md)
- [userInterfaceDirectionPolicy](webkit/webpage/configuration/userinterfacedirectionpolicy.md)
- [webExtensionController](webkit/webpage/configuration/webextensioncontroller.md)
- [websiteDataStore](webkit/webpage/configuration/websitedatastore.md)

### Enumerations

- [WebPage.Configuration.MediaPlaybackBehavior](webkit/webpage/configuration/mediaplaybackbehavior-swift.enum.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring a WebPage

- [WebPage.DeviceSensorAuthorization](webkit/webpage/devicesensorauthorization.md)
- [URLScheme](webkit/urlscheme.md)
- [URLSchemeHandler](webkit/urlschemehandler.md)
- [URLSchemeTaskResult](webkit/urlschemetaskresult.md)
