ContactParser
public protocol ContactParser : Parser where Self.T == Any, Self.U == CNMutableContact
Extension to the Parser protocol.
Requires the converted object to be an instance of the CNMutableContact type.
Seealso
ContactDictionaryParser
Seealso
ContactsHandler
-
Contact store used for saving contacts.
Declaration
Swift
var store: CNContactStore { get }
-
parseAndSave(resources:)Extension methodReads JSON arrays from
LaunchEnvironmentResourcethen parse the data toCNMutableContacts and save them to theCNContactStore.Throws
ParserErrorif data has unexpected format or standardErrorfor saving and committing in CNContactStore.Declaration
Swift
public func parseAndSave(resources: [LaunchEnvironmentResource]) throwsParameters
resourcesAn array of resources describing a path to data to parse.
ContactParser Protocol Reference