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
LaunchEnvironmentResource
then parse the data toCNMutableContact
s and save them to theCNContactStore
.Throws
ParserError
if data has unexpected format or standardError
for saving and committing in CNContactStore.Declaration
Swift
public func parseAndSave(resources: [LaunchEnvironmentResource]) throws
Parameters
resources
An array of resources describing a path to data to parse.