One Logo Pool Ball
NetworkExtension · IOS API REFERENCE

NEURLFilterManager.ParsingConfiguration.DomainOptions

struct · iOS 27.0+ · SDK 27.1

struct DomainOptions

A type that represents options for parsing the URL domain component.

Members (9)

get · iOS 27.0+

enumerateHierarchy

TypeScript
get enumerateHierarchy(): boolean
Swift declaration
var enumerateHierarchy: Bool

A Boolean value that indicates whether the parser walks the domain hierarchy for matching.

set · iOS 27.0+

enumerateHierarchy

TypeScript
set enumerateHierarchy(value: boolean)
Swift declaration
var enumerateHierarchy: Bool

A Boolean value that indicates whether the parser walks the domain hierarchy for matching.

get · iOS 27.0+

levels

TypeScript
get levels(): number
Swift declaration
var levels: UInt

The number of domain levels to preserve when parsing. A value of `2` for the domain `www.sub.example.com` keeps the `example.com`. Use a value of `0` to keep all domain levels.

set · iOS 27.0+

levels

TypeScript
set levels(value: number)
Swift declaration
var levels: UInt

The number of domain levels to preserve when parsing. A value of `2` for the domain `www.sub.example.com` keeps the `example.com`. Use a value of `0` to keep all domain levels.

init · iOS 27.0+

init

TypeScript
static init(excluded?: boolean, stripWWW?: boolean, levels?: number, enumerateHierarchy?: boolean): NEURLFilterManager_ParsingConfiguration_DomainOptions
Swift declaration
init(excluded: Bool = false, stripWWW: Bool = true, levels: UInt = 0, enumerateHierarchy: Bool = true)

Creates a new domain options configuration with default values. The domain options default behavior is as follows: * Parsing includes the domain. * Parsing strips the `www` subdomain if it is present. * Parsing includes all domain levels. * Parsing enables enumeration of the domain hierarchy.

get · iOS 27.0+

excluded

TypeScript
get excluded(): boolean
Swift declaration
var excluded: Bool

A Boolean value that indicates whether to exclude the domain component from URL parsing. When this value is `true`, parsing ignores all other domain options.

set · iOS 27.0+

excluded

TypeScript
set excluded(value: boolean)
Swift declaration
var excluded: Bool

A Boolean value that indicates whether to exclude the domain component from URL parsing. When this value is `true`, parsing ignores all other domain options.

get · iOS 27.0+

stripWWW

TypeScript
get stripWWW(): boolean
Swift declaration
var stripWWW: Bool

A Boolean value that indicates whether to strip the `www` subdomain when parsing.

set · iOS 27.0+

stripWWW

TypeScript
set stripWWW(value: boolean)
Swift declaration
var stripWWW: Bool

A Boolean value that indicates whether to strip the `www` subdomain when parsing.

Skipped declarations

No declarations were skipped in this snapshot.

All NetworkExtension types →