fromReader

suspend fun fromReader(reader: Reader, downloader: Contact.Downloader?): List<Contact>

Parses a Reader that contains a vCard.

Return

list of filled Contact data objects (may have size 0) – doesn't return null

Parameters

reader

reader for the input stream containing the vCard (pay attention to the charset)

downloader

will be used to download external resources like contact photos (may be null)

Throws

on I/O errors when reading the stream

ezvcard.io.CannotParseException

when the vCard can't be parsed