public interface Vcard
| Modifier and Type | Method and Description |
|---|---|
void |
addPhoneNumber(java.lang.String phone)
Adds a phone number in the vCard, using the TEL property.
|
void |
addSipAddress(java.lang.String sipAddress)
Adds a SIP address in the vCard, using the IMPP property.
|
java.lang.String |
asVcard4String()
Returns the vCard4 representation of the LinphoneVcard.
|
Vcard |
clone()
Clone a
Vcard. |
void |
editMainSipAddress(java.lang.String sipAddress)
Edits the preferred SIP address in the vCard (or the first one), using the IMPP
property. |
boolean |
generateUniqueId()
Generates a random unique id for the vCard.
|
java.lang.String |
getEtag()
Gets the eTag of the vCard.
|
java.lang.String |
getFamilyName()
Returns the family name in the N attribute of the vCard, or null if it isn't
set yet. |
java.lang.String |
getFullName()
Returns the FN attribute of the vCard, or null if it isn't set yet.
|
java.lang.String |
getGivenName()
Returns the given name in the N attribute of the vCard, or null if it isn't set
yet. |
long |
getNativePointer()
Gets the native pointer used by this class to make native method calls.
|
java.lang.String |
getOrganization()
Gets the Organization of the vCard.
|
java.lang.String[] |
getPhoneNumbers()
Returns the list of phone numbers in the vCard (all the TEL attributes) or
null. |
Address[] |
getSipAddresses()
Returns the list of SIP addresses in the vCard (all the IMPP attributes that
has an URI value starting by "sip:") or null. |
boolean |
getSkipValidation()
Returns the skipFieldValidation property of the vcard.
|
java.lang.String |
getUid()
Gets the UID of the vCard.
|
java.lang.String |
getUrl()
Gets the URL of the vCard.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
void |
removeOrganization()
Removes the Organization field of the vCard.
|
void |
removePhoneNumber(java.lang.String phone)
Removes a phone number in the vCard (if it exists), using the TEL property.
|
void |
removeSipAddress(java.lang.String sipAddress)
Removes a SIP address in the vCard (if it exists), using the IMPP property.
|
void |
setEtag(java.lang.String etag)
Sets the eTAG of the vCard.
|
void |
setFamilyName(java.lang.String name)
Sets the family name in the N attribute of the vCard.
|
void |
setFullName(java.lang.String name)
Sets the FN attribute of the vCard (which is mandatory).
|
void |
setGivenName(java.lang.String name)
Sets the given name in the N attribute of the vCard.
|
void |
setOrganization(java.lang.String organization)
Fills the Organization field of the vCard.
|
void |
setSkipValidation(boolean skip)
Sets the skipFieldValidation property of the vcard.
|
void |
setUid(java.lang.String uid)
Sets the unique ID of the vCard.
|
void |
setUrl(java.lang.String url)
Sets the URL of the vCard.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
java.lang.String |
toString() |
@Nullable java.lang.String getEtag()
void setEtag(@Nullable
java.lang.String etag)
etag - the eTAG. @Nullable java.lang.String getFamilyName()
void setFamilyName(@Nullable
java.lang.String name)
name - the family name to set for the vCard @Nullable java.lang.String getFullName()
void setFullName(@Nullable
java.lang.String name)
name - the display name to set for the vCard @Nullable java.lang.String getGivenName()
void setGivenName(@Nullable
java.lang.String name)
name - the given name to set for the vCard @Nullable java.lang.String getOrganization()
void setOrganization(@Nullable
java.lang.String organization)
organization - the Organization. @NonNull java.lang.String[] getPhoneNumbers()
@NonNull Address[] getSipAddresses()
boolean getSkipValidation()
void setSkipValidation(boolean skip)
skip - skipFieldValidation property of the vcard @Nullable java.lang.String getUid()
void setUid(@Nullable
java.lang.String uid)
uid - the unique id @Nullable java.lang.String getUrl()
void setUrl(@Nullable
java.lang.String url)
url - the URL. void addPhoneNumber(@NonNull
java.lang.String phone)
phone - the phone number to add void addSipAddress(@NonNull
java.lang.String sipAddress)
sipAddress - the SIP address to add @Nullable java.lang.String asVcard4String()
void editMainSipAddress(@NonNull
java.lang.String sipAddress)
sipAddress - the new SIP address boolean generateUniqueId()
void removeOrganization()
void removePhoneNumber(@NonNull
java.lang.String phone)
phone - the phone number to remove void removeSipAddress(@NonNull
java.lang.String sipAddress)
sipAddress - the SIP address to remove void setUserData(java.lang.Object data)
data - the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString in class java.lang.Object