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

ContactsHandler
  • Contact store used for saving contacts.

    Declaration

    Swift

    var store: CNContactStore { get }
  • parseAndSave(resources:) Extension method

    Reads JSON arrays from LaunchEnvironmentResource then parse the data to CNMutableContacts and save them to the CNContactStore.

    Throws

    ParserError if data has unexpected format or standard Error 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.