public interface LinphoneFriend
Modifier and Type | Interface and Description |
---|---|
static class |
LinphoneFriend.SubscribePolicy
Enum controlling behavior for incoming subscription request.
|
Modifier and Type | Method and Description |
---|---|
void |
addAddress(LinphoneAddress addr) |
void |
addPhoneNumber(String phone) |
void |
done()
Commits modification made to the friend configuration.
|
void |
edit()
Starts editing a friend configuration.
|
void |
enableSubscribes(boolean enable)
Configure LinphoneFriend to subscribe to presence information
|
LinphoneAddress |
getAddress()
get address of this friend
|
LinphoneAddress[] |
getAddresses() |
String |
getFamilyName()
get a family name of this friend
|
String |
getGivenName()
get a given name of this friend
|
LinphoneFriend.SubscribePolicy |
getIncSubscribePolicy()
get current subscription policy for this LinphoneFriend
|
String |
getName()
get a name of this friend
|
long |
getNativePtr()
Return the native pointer for this object
|
String |
getOrganization()
Get organization of this friend
|
String[] |
getPhoneNumbers() |
PresenceModel |
getPresenceModel()
Deprecated.
Use getPresenceModelForUri() instead
|
PresenceModel |
getPresenceModelForUri(String uri)
Get the presence information for a specific uri (phone number or sip address)
|
String |
getRefKey()
Get the reference key of a friend.
|
OnlineStatus |
getStatus()
Deprecated.
Use getPresenceModelForUri() instead
|
boolean |
isAlreadyPresentInFriendList()
Returns true if friend has already been added in a LinphoneFriendList, false otherwise
|
boolean |
isPresenceReceived()
get presence received status if already setted
|
boolean |
isSubscribesEnabled()
get subscription flag value
|
void |
removeAddress(LinphoneAddress addr) |
void |
removePhoneNumber(String phone) |
void |
setAddress(LinphoneAddress anAddress)
Set a
LinphoneAddress for this friend |
void |
setFamilyName(String name)
Set a family name for this friend
|
void |
setGivenName(String name)
Set a given name for this friend
|
void |
setIncSubscribePolicy(LinphoneFriend.SubscribePolicy policy)
Configure incoming subscription policy for this friend.
|
void |
setName(String name)
Set a name for this friend
|
void |
setOrganization(String organization)
Set an organization for this friend
|
void |
setPresenceModel(PresenceModel presenceModel)
Set the presence information of a friend
|
void |
setRefKey(String key)
Set the reference key of a friend.
|
String |
toString()
Human readable representation of this friend
|
void setAddress(LinphoneAddress anAddress)
LinphoneAddress
for this friendanAddress
- LinphoneAddress getAddress()
void setIncSubscribePolicy(LinphoneFriend.SubscribePolicy policy)
policy
- to applyLinphoneFriend.SubscribePolicy getIncSubscribePolicy()
void enableSubscribes(boolean enable)
enable
- if true this friend will receive subscription messageboolean isSubscribesEnabled()
boolean isPresenceReceived()
@Deprecated OnlineStatus getStatus()
@Deprecated PresenceModel getPresenceModel()
PresenceModel getPresenceModelForUri(String uri)
void setPresenceModel(PresenceModel presenceModel)
presenceModel
- A #PresenceModel objectvoid edit()
edit()
before doing any attempts to modify friend configuration (such as address or subscription policy and so on).
Once the modifications are done, then the application must call done()
to commit the changes.void done()
String toString()
long getNativePtr()
void setRefKey(String key)
key
- The reference key to use for the friend.String getRefKey()
void setName(String name)
name
- String getName()
void setFamilyName(String name)
name
- String getFamilyName()
void setGivenName(String name)
name
- String getGivenName()
void setOrganization(String organization)
organization
- String getOrganization()
LinphoneAddress[] getAddresses()
void addAddress(LinphoneAddress addr)
void removeAddress(LinphoneAddress addr)
String[] getPhoneNumbers()
void addPhoneNumber(String phone)
void removePhoneNumber(String phone)
boolean isAlreadyPresentInFriendList()