iOS reference / Foundation / PropertyListSerializationFoundation · IOS API REFERENCE
PropertyListSerialization class · SDK 27.1
class PropertyListSerializationMembers (6) static · iOS 2.0+ · Deprecated in iOS 8.0 dataFromPropertyList TypeScript static dataFromPropertyList(plist: unknown, format: PropertyListSerialization_PropertyListFormat): { $ret: (ArrayBuffer) | null; $out: { "errorString": (NSString) | null } }Swift declaration class func dataFromPropertyList(_ plist: Any, format: PropertyListSerialization.PropertyListFormat, errorDescription errorString: UnsafeMutablePointer<NSString?>?) -> Data?Omit the output parameters from the call. The result contains $ret and $out, with errorString inside $out.
static · iOS 4.0+ data TypeScript static data(plist: unknown, format: PropertyListSerialization_PropertyListFormat, opt: number): ArrayBufferSwift declaration class func data(fromPropertyList plist: Any, format: PropertyListSerialization.PropertyListFormat, options opt: PropertyListSerialization.WriteOptions) throws -> Datastatic propertyList TypeScript static propertyList(plist: unknown, format: PropertyListSerialization_PropertyListFormat): booleanSwift declaration class func propertyList(_ plist: Any, isValidFor format: PropertyListSerialization.PropertyListFormat) -> Boolstatic · iOS 2.0+ · Deprecated in iOS 8.0 propertyListFromData TypeScript static propertyListFromData(data: ArrayBuffer, opt?: PropertyListSerialization_MutabilityOptions, format?: (SDKHandle) | null): { $ret: (unknown) | null; $out: { "errorString": (NSString) | null } }Swift declaration class func propertyListFromData(_ data: Data, mutabilityOption opt: PropertyListSerialization.MutabilityOptions = [], format: UnsafeMutablePointer<PropertyListSerialization.PropertyListFormat>?, errorDescription errorString: UnsafeMutablePointer<NSString?>?) -> Any?Omit the output parameters from the call. The result contains $ret and $out, with errorString inside $out.
static · iOS 4.0+ writePropertyList TypeScript static writePropertyList(plist: unknown, stream: OutputStream, format: PropertyListSerialization_PropertyListFormat, opt: number): { $ret: number; $out: { "error": (NSError) | null } }Swift declaration class func writePropertyList(_ plist: Any, to stream: OutputStream, format: PropertyListSerialization.PropertyListFormat, options opt: PropertyListSerialization.WriteOptions, error: NSErrorPointer) -> IntOmit the output parameters from the call. The result contains $ret and $out, with error inside $out.
init init TypeScript static init(): PropertyListSerializationSwift declaration init()Skipped declarations 2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
PropertyListSerialization.propertyList(from:options:format:)
The iOS SDK compiler rejected this binding: cannot convert value of type '[Any]' to type 'PropertyListSerialization.ReadOptions' (aka 'Int') in coercion
PropertyListSerialization.propertyList(with:options:format:)
The iOS SDK compiler rejected this binding: cannot convert value of type '[Any]' to type 'PropertyListSerialization.ReadOptions' (aka 'Int') in coercion
All Foundation types →