One Logo Pool Ball
ManagedSettings · IOS API REFERENCE

WebContentSettings

struct · iOS 15.0+ · SDK 27.1

struct WebContentSettings

An object that configures which websites a user can access.

Members (3)

get · iOS 15.0+

blockedByFilter

TypeScript
static get blockedByFilter(): SettingMetadata<WebContentSettings_FilterPolicy>
Swift declaration
static let blockedByFilter: SettingMetadata<WebContentSettings.FilterPolicy>

A description of the setting that controls which websites a user can access. The default value is ``WebContentSettings/FilterPolicy/none``, which indicates that the system doesn't block any websites.

get · iOS 15.0+

blockedByFilter

TypeScript
get blockedByFilter31965(): (WebContentSettings_FilterPolicy) | null
Swift declaration
var blockedByFilter: WebContentSettings.FilterPolicy? { get set }

The current policy for filtering websites. Setting any filter policy besides `.none` will disable Safari private browsing. The value is `nil` unless you specify a policy. Your app can block up to 50 web domains and specify up to 50 web domains exceptions at once.

set · iOS 15.0+

blockedByFilter

TypeScript
set blockedByFilter31965(value: (WebContentSettings_FilterPolicy) | null)
Swift declaration
var blockedByFilter: WebContentSettings.FilterPolicy? { get set }

The current policy for filtering websites. Setting any filter policy besides `.none` will disable Safari private browsing. The value is `nil` unless you specify a policy. Your app can block up to 50 web domains and specify up to 50 web domains exceptions at once.

Skipped declarations

No declarations were skipped in this snapshot.

All ManagedSettings types →