Instance Method

persistentDomainNames()

Returns an array of the current persistent domain names.

Declaration

func persistentDomainNames() -> [Any]

Return Value

An array of NSString objects containing the domain names.

Discussion

You can get the keys and values for each domain by passing the returned domain names to the persistentDomain(forName:) method.

See Also

Maintaining Persistent Domains

func persistentDomain(forName: String) -> [String : Any]?

Returns a dictionary representation of the defaults for the specified domain.

func setPersistentDomain([String : Any], forName: String)

Sets a dictionary for the specified persistent domain.

func removePersistentDomain(forName: String)

Removes the contents of the specified persistent domain from the user’s defaults.