One Logo Pool Ball
ManagedSettings · IOS API REFERENCE

WebDomain

struct · iOS 15.0+ · SDK 27.1

struct WebDomain

An object that represents a website.

Members (4)

get · iOS 15.0+

token

TypeScript
get token(): (Token<WebDomain>) | null
Swift declaration
let token: WebDomainToken?

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.

init · iOS 15.0+

init

TypeScript
static initToken(token: Token<WebDomain>): WebDomain
Swift declaration
init(token: WebDomainToken)

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.

Skipped declarations

No declarations were skipped in this snapshot.

All ManagedSettings types →