public interface Vcard
| Modifier and Type | Method | Description |
|---|---|---|
void |
addExtendedProperty(java.lang.String name,
java.lang.String value) |
Adds an extended property to the vCard.
|
void |
addPhoneNumber(java.lang.String phone) |
Adds a phone number in the vCard, using the TEL property.
|
void |
addPhoneNumberWithLabel(FriendPhoneNumber phoneNumber) |
Adds a
FriendPhoneNumber 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[] |
getExtendedPropertiesValuesByName(java.lang.String name) |
Get the vCard extended properties values per property name.
|
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. |
FriendPhoneNumber[] |
getPhoneNumbersWithLabel() |
Returns the list of phone numbers in the vCard (all the TEL attributes) or
null. |
java.lang.String |
getPhoto() |
Returns the first PHOTO property 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 |
removeExtentedPropertiesByName(java.lang.String name) |
Remove all the extend properties per property name.
|
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 |
removePhoneNumberWithLabel(FriendPhoneNumber phoneNumber) |
Removes a
FriendPhoneNumber in the vCard (if it exists), using the TELproperty. |
void |
removePhoto() |
Removes any existing PHOTO 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 |
setPhoto(java.lang.String picture) |
Sets a picture URI in the vCard, using the PHOTO property.
|
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 FriendPhoneNumber[] getPhoneNumbersWithLabel()
FriendPhoneNumber. @Nullable java.lang.String getPhoto()
void setPhoto(@Nullable
java.lang.String picture)
picture - the picture URI to add. If null it will have the same effet asremovePhoto(). @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 addExtendedProperty(@NonNull
java.lang.String name,
@NonNull
java.lang.String value)
name - the name of the extended property to add value - the value of the extended property to add void addPhoneNumber(@NonNull
java.lang.String phone)
phone - the phone number to add void addPhoneNumberWithLabel(@NonNull
FriendPhoneNumber phoneNumber)
phoneNumber - the FriendPhoneNumber 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()
@NonNull
java.lang.String[] getExtendedPropertiesValuesByName(@NonNull
java.lang.String name)
name - the name to filter the extended properties on. void removeExtentedPropertiesByName(@NonNull
java.lang.String name)
name - the name to remove the extended properties on. void removeOrganization()
void removePhoneNumber(@NonNull
java.lang.String phone)
phone - the phone number to remove void removePhoneNumberWithLabel(@NonNull
FriendPhoneNumber phoneNumber)
phoneNumber - the FriendPhoneNumber to remove void removePhoto()
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