Type Method

propertyListFromData(_:mutabilityOption:format:errorDescription:)

This method is deprecated. Use data(fromPropertyList:format:options:) instead.

Declaration

class func propertyListFromData(_ data: Data, mutabilityOption opt: PropertyListSerialization.MutabilityOptions = [], format: UnsafeMutablePointer<PropertyListSerialization.PropertyListFormat>?, errorDescription errorString: UnsafeMutablePointer<NSString?>?) -> Any?

Parameters

data

A data object containing a serialized property list.

opt

The options used to create the property list. For possible values, see PropertyListSerialization.MutabilityOptions.

format

If the property list is valid, upon return contains the format. format can be nil, in which case the property list format is not returned. For possible values, see PropertyListSerialization.PropertyListFormat.

errorString

Upon return, if the conversion is successful, errorString is nil. If the conversion fails, upon return contains a string describing the nature of the error.

Return Value

A property list object corresponding to the representation in data. If data is not in a supported format, returns nil.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software