Vcard

public class Vcard : LinphoneObject

Object storing contact information using vCard 4.0 format.

  • Undocumented

    Declaration

    Swift

    public static func getSwiftObject(cObject: OpaquePointer) -> Vcard
  • Undocumented

    Declaration

    Swift

    public var getCobject: OpaquePointer? { get }
  • Gets the eTag of the vCard.

    Declaration

    Swift

    public var etag: String { get set }

    Return Value

    the eTag of the vCard in the CardDAV server, otherwise nil.

  • Returns the family name in the N attribute of the vCard, or nil if it isn’t set yet.

    Declaration

    Swift

    public var familyName: String { get set }

    Return Value

    the family name of the vCard, or nil

  • Returns the FN attribute of the vCard, or nil if it isn’t set yet.

    Declaration

    Swift

    public var fullName: String { get set }

    Return Value

    the display name of the vCard, or nil.

  • Returns the given name in the N attribute of the vCard, or nil if it isn’t set yet.

    Declaration

    Swift

    public var givenName: String { get set }

    Return Value

    the given name of the vCard, or nil

  • Gets the Organization of the vCard.

    Declaration

    Swift

    public var organization: String { get set }

    Return Value

    the Organization of the vCard or nil.

  • Returns the list of phone numbers in the vCard (all the TEL attributes) or nil.

    Declaration

    Swift

    public var phoneNumbers: [String] { get }

    Return Value

    The phone numbers as string.

  • Returns the list of SIP addresses in the vCard (all the IMPP attributes that has an URI value starting by “sip:”) or nil.

    Declaration

    Swift

    public var sipAddresses: [Address] { get }

    Return Value

    The SIP addresses.

  • Returns the skipFieldValidation property of the vcard.

    Declaration

    Swift

    public var skipValidation: Bool { get set }

    Return Value

    the skipFieldValidation property of the vcard

  • uid

    Gets the UID of the vCard.

    Declaration

    Swift

    public var uid: String { get set }

    Return Value

    the UID of the vCard, otherwise nil.

  • url

    Gets the URL of the vCard.

    Declaration

    Swift

    public var url: String { get set }

    Return Value

    the URL of the vCard in the CardDAV server, otherwise nil.

  • Adds a phone number in the vCard, using the TEL property.

    Declaration

    Swift

    public func addPhoneNumber(phone: String)

    Parameters

    phone

    the phone number to add

  • Adds a SIP address in the vCard, using the IMPP property.

    Declaration

    Swift

    public func addSipAddress(sipAddress: String)

    Parameters

    sipAddress

    the SIP address to add

  • Returns the vCard4 representation of the LinphoneVcard.

    Declaration

    Swift

    public func asVcard4String() -> String

    Return Value

    a const char * that represents the vCard.

  • Clone a Vcard.

    Declaration

    Swift

    public func clone() -> Vcard?

    Return Value

    a new Vcard object

  • Edits the preferred SIP address in the vCard (or the first one), using the IMPP property.

    Declaration

    Swift

    public func editMainSipAddress(sipAddress: String)

    Parameters

    sipAddress

    the new SIP address

  • Generates a random unique id for the vCard. If is required to be able to synchronize the vCard with a CardDAV server

    Declaration

    Swift

    public func generateUniqueId() -> Bool

    Return Value

    true if operation is successful, otherwise false (for example if it already has an unique ID)

  • Removes the Organization field of the vCard.

    Declaration

    Swift

    public func removeOrganization()
  • Removes a phone number in the vCard (if it exists), using the TEL property.

    Declaration

    Swift

    public func removePhoneNumber(phone: String)

    Parameters

    phone

    the phone number to remove

  • Removes a SIP address in the vCard (if it exists), using the IMPP property.

    Declaration

    Swift

    public func removeSipAddress(sipAddress: String)

    Parameters

    sipAddress

    the SIP address to remove