Skip to content

Feature request: Support for parsing custom vcard field  #21

@rostradamus

Description

@rostradamus

Hi,
I was trying to find a way to get custom data in parsed VCard String but had no luck.
Is there an existing functionality to get additional custom data from parsed VCard?
If not, it would be really helpful if there is a way to fetch values of custom label (CUSTOM) like an example below.
If you are okay with me making a PR, I can try to implement and create a PR for it.

Suggestion:

final vCard = Contact.fromVCard(rawData);
String customValue = vCard.getCustomValue("CUSTOM"); // == "some_custom_value"
...
BEGIN:VCARD
VERSION:3.0
PRODID:ez-vcard 0.11.2
N:Some;Name
ORG:Somewhere
TITLE:Some Title
EMAIL;TYPE=work:test@example.com
TEL:1231231234
CUSTOM:some_custom_value
END:VCARD

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions