Contents

dictionaryRepresentation()

Returns a dictionary with the union of all key-value pairs found from all domains.

Declaration

func dictionaryRepresentation() -> [String : Any]

Return Value

A dictionary with the combined set of keys and values from all domains.

Discussion

Use this method to retrieve a union of the keys and values available to your app. The dictionary contains the data from all of the available domains. If multiple domains contain a value for the same key, the dictionary includes the value from the earliest occurrence of that key and discards the values in subsequent domains.

The values in the dictionary are one of the property list object types, such as NSNumber, NSString, Data, Date, NSArray, or NSDictionary.

See Also

Getting the value of a key