Class ContactsVcard

Definition

Namespace:
Tizen.Pims.Contacts
Assembly:
Tizen.Pims.Contacts.dll
API Level:
4

A class for parsing and making the vCards.

C#
Copy
public static class ContactsVcard : object
Inheritance
ContactsVcard
Remarks

It's based on the vCard v3.0 specification.

Methods

View Source

Compose(ContactsRecord)

Retrieves the vCard stream from a contacts record.

Declaration
C#
Copy
public static string Compose(ContactsRecord record)
Parameters
Type Name Description
ContactsRecord record

The contacts record.

Returns
Type Description
String

The vCard stream.

API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/contact.read
Feature: http://tizen.org/feature/contact
View Source

Parse(String)

Retrieves all the contacts with a contacts list from a vCard stream.

Declaration
C#
Copy
public static ContactsList Parse(string stream)
Parameters
Type Name Description
String stream

The vCard stream.

Returns
Type Description
ContactsList

The contacts list.

API Level: 4
Feature: http://tizen.org/feature/contact
View Source

ParseForEach(String, ParseCallback)

Retrieves all the contacts with a record from a vCard file.

Declaration
C#
Copy
public static void ParseForEach(string path, ParseCallback callback)
Parameters
Type Name Description
String path

The file path of a vCard stream file.

ParseCallback callback

The callback function to invoke.

API Level: 4
Feature: http://tizen.org/feature/contact