An opaque representation of a specific web domain.
Use a token to share information about a web domain with other devices in the same Family Sharing group.
Creates an object that represents the provided domain.
- Parameter token: A token to identify the web domain privately.
init · iOS 15.0+
init
TypeScript
static initDomain(domain: string): WebDomain
Swift declaration
init(domain: String)
Creates an object that represents the specified web domain.
Provide a high-level domain, such as `example.com`.
To protect a family's privacy, use ``init(token:)`` instead.
- Parameter domain: A website to allow or block.
get · iOS 15.0+
domain
TypeScript
get domain(): (string) | null
Swift declaration
let domain: String?
A string that identifies a specific web domain.
In an extension that provides shield configurations, this property provides the web domain.
When you access this property outside that extension, the value is `nil`.
See <doc://com.apple.documentation/documentation/ManagedSettingsUI/ShieldConfigurationDataSource> for more information.