• Api Documentation
Show / Hide Table of Contents
  • Linphone
    • Account
    • AccountCreator
    • AccountCreatorActivationCodeStatus
    • AccountCreatorAlgoStatus
    • AccountCreatorBackend
    • AccountCreatorDomainStatus
    • AccountCreatorEmailStatus
    • AccountCreatorLanguageStatus
    • AccountCreatorListener
    • AccountCreatorListener.OnAccountCreationRequestTokenDelegate
    • AccountCreatorListener.OnAccountCreationTokenUsingRequestTokenDelegate
    • AccountCreatorListener.OnActivateAccountDelegate
    • AccountCreatorListener.OnActivateAliasDelegate
    • AccountCreatorListener.OnCreateAccountDelegate
    • AccountCreatorListener.OnIsAccountActivatedDelegate
    • AccountCreatorListener.OnIsAccountExistDelegate
    • AccountCreatorListener.OnIsAccountLinkedDelegate
    • AccountCreatorListener.OnIsAliasUsedDelegate
    • AccountCreatorListener.OnLinkAccountDelegate
    • AccountCreatorListener.OnLoginLinphoneAccountDelegate
    • AccountCreatorListener.OnRecoverAccountDelegate
    • AccountCreatorListener.OnSendTokenDelegate
    • AccountCreatorListener.OnUpdateAccountDelegate
    • AccountCreatorPasswordStatus
    • AccountCreatorPhoneNumberStatus
    • AccountCreatorStatus
    • AccountCreatorTransportStatus
    • AccountCreatorUsernameStatus
    • AccountListener
    • AccountListener.OnRegistrationStateChangedDelegate
    • AccountParams
    • Address
    • AddressFamily
    • AudioDevice
    • AudioDeviceCapabilities
    • AudioDeviceType
    • AuthInfo
    • AuthMethod
    • AVPFMode
    • Buffer
    • Call
    • CallDir
    • CallListener
    • CallListener.OnAckProcessingDelegate
    • CallListener.OnAudioDeviceChangedDelegate
    • CallListener.OnCameraNotWorkingDelegate
    • CallListener.OnDtmfReceivedDelegate
    • CallListener.OnEncryptionChangedDelegate
    • CallListener.OnGoclearAckSentDelegate
    • CallListener.OnInfoMessageReceivedDelegate
    • CallListener.OnNextVideoFrameDecodedDelegate
    • CallListener.OnReceiveMasterKeyChangedDelegate
    • CallListener.OnRemoteRecordingDelegate
    • CallListener.OnSendMasterKeyChangedDelegate
    • CallListener.OnSnapshotTakenDelegate
    • CallListener.OnStateChangedDelegate
    • CallListener.OnStatsUpdatedDelegate
    • CallListener.OnTmmbrReceivedDelegate
    • CallListener.OnTransferStateChangedDelegate
    • CallListener.OnVideoDisplayErrorOccurredDelegate
    • CallLog
    • CallParams
    • CallState
    • CallStats
    • CallStatus
    • ChatMessage
    • ChatMessageDirection
    • ChatMessageListener
    • ChatMessageListener.OnEphemeralMessageDeletedDelegate
    • ChatMessageListener.OnEphemeralMessageTimerStartedDelegate
    • ChatMessageListener.OnFileTransferProgressIndicationDelegate
    • ChatMessageListener.OnFileTransferRecvDelegate
    • ChatMessageListener.OnFileTransferSendChunkDelegate
    • ChatMessageListener.OnFileTransferSendDelegate
    • ChatMessageListener.OnMsgStateChangedDelegate
    • ChatMessageListener.OnParticipantImdnStateChangedDelegate
    • ChatMessageState
    • ChatRoom
    • ChatRoomBackend
    • ChatRoomCapabilities
    • ChatRoomEncryptionBackend
    • ChatRoomEphemeralMode
    • ChatRoomListener
    • ChatRoomListener.OnChatMessageParticipantImdnStateChangedDelegate
    • ChatRoomListener.OnChatMessageReceivedDelegate
    • ChatRoomListener.OnChatMessageSendingDelegate
    • ChatRoomListener.OnChatMessageSentDelegate
    • ChatRoomListener.OnChatMessageShouldBeStoredDelegate
    • ChatRoomListener.OnChatMessagesReceivedDelegate
    • ChatRoomListener.OnConferenceAddressGenerationDelegate
    • ChatRoomListener.OnConferenceJoinedDelegate
    • ChatRoomListener.OnConferenceLeftDelegate
    • ChatRoomListener.OnEphemeralEventDelegate
    • ChatRoomListener.OnEphemeralMessageDeletedDelegate
    • ChatRoomListener.OnEphemeralMessageTimerStartedDelegate
    • ChatRoomListener.OnIsComposingReceivedDelegate
    • ChatRoomListener.OnMessageReceivedDelegate
    • ChatRoomListener.OnMessagesReceivedDelegate
    • ChatRoomListener.OnNewEventDelegate
    • ChatRoomListener.OnNewEventsDelegate
    • ChatRoomListener.OnParticipantAddedDelegate
    • ChatRoomListener.OnParticipantAdminStatusChangedDelegate
    • ChatRoomListener.OnParticipantDeviceAddedDelegate
    • ChatRoomListener.OnParticipantDeviceMediaAvailabilityChangedDelegate
    • ChatRoomListener.OnParticipantDeviceRemovedDelegate
    • ChatRoomListener.OnParticipantDeviceStateChangedDelegate
    • ChatRoomListener.OnParticipantRegistrationSubscriptionRequestedDelegate
    • ChatRoomListener.OnParticipantRegistrationUnsubscriptionRequestedDelegate
    • ChatRoomListener.OnParticipantRemovedDelegate
    • ChatRoomListener.OnSecurityEventDelegate
    • ChatRoomListener.OnStateChangedDelegate
    • ChatRoomListener.OnSubjectChangedDelegate
    • ChatRoomListener.OnUndecryptableMessageReceivedDelegate
    • ChatRoomParams
    • ChatRoomSecurityLevel
    • ChatRoomState
    • Conference
    • ConferenceInfo
    • ConferenceInfoState
    • ConferenceJoiningMode
    • ConferenceLayout
    • ConferenceListener
    • ConferenceListener.OnActiveSpeakerParticipantDeviceDelegate
    • ConferenceListener.OnAudioDeviceChangedDelegate
    • ConferenceListener.OnAvailableMediaChangedDelegate
    • ConferenceListener.OnParticipantAddedDelegate
    • ConferenceListener.OnParticipantAdminStatusChangedDelegate
    • ConferenceListener.OnParticipantDeviceAddedDelegate
    • ConferenceListener.OnParticipantDeviceIsMutedDelegate
    • ConferenceListener.OnParticipantDeviceIsSpeakingChangedDelegate
    • ConferenceListener.OnParticipantDeviceMediaAvailabilityChangedDelegate
    • ConferenceListener.OnParticipantDeviceMediaCapabilityChangedDelegate
    • ConferenceListener.OnParticipantDeviceRemovedDelegate
    • ConferenceListener.OnParticipantDeviceStateChangedDelegate
    • ConferenceListener.OnParticipantRemovedDelegate
    • ConferenceListener.OnStateChangedDelegate
    • ConferenceListener.OnSubjectChangedDelegate
    • ConferenceParams
    • ConferenceParticipantListType
    • ConferenceScheduler
    • ConferenceSchedulerListener
    • ConferenceSchedulerListener.OnInvitationsSentDelegate
    • ConferenceSchedulerListener.OnStateChangedDelegate
    • ConferenceSchedulerState
    • ConferenceState
    • Config
    • ConfiguringState
    • ConsolidatedPresence
    • Content
    • Core
    • Core.MSOglContextInfo
    • CoreListener
    • CoreListener.OnAccountRegistrationStateChangedDelegate
    • CoreListener.OnAudioDeviceChangedDelegate
    • CoreListener.OnAudioDevicesListUpdatedDelegate
    • CoreListener.OnAuthenticationRequestedDelegate
    • CoreListener.OnBuddyInfoUpdatedDelegate
    • CoreListener.OnCallCreatedDelegate
    • CoreListener.OnCallEncryptionChangedDelegate
    • CoreListener.OnCallGoclearAckSentDelegate
    • CoreListener.OnCallIdUpdatedDelegate
    • CoreListener.OnCallLogUpdatedDelegate
    • CoreListener.OnCallReceiveMasterKeyChangedDelegate
    • CoreListener.OnCallSendMasterKeyChangedDelegate
    • CoreListener.OnCallStateChangedDelegate
    • CoreListener.OnCallStatsUpdatedDelegate
    • CoreListener.OnChatRoomEphemeralMessageDeletedDelegate
    • CoreListener.OnChatRoomReadDelegate
    • CoreListener.OnChatRoomSessionStateChangedDelegate
    • CoreListener.OnChatRoomStateChangedDelegate
    • CoreListener.OnChatRoomSubjectChangedDelegate
    • CoreListener.OnConferenceInfoReceivedDelegate
    • CoreListener.OnConferenceStateChangedDelegate
    • CoreListener.OnConfiguringStatusDelegate
    • CoreListener.OnDtmfReceivedDelegate
    • CoreListener.OnEcCalibrationAudioInitDelegate
    • CoreListener.OnEcCalibrationAudioUninitDelegate
    • CoreListener.OnEcCalibrationResultDelegate
    • CoreListener.OnFirstCallStartedDelegate
    • CoreListener.OnFriendListCreatedDelegate
    • CoreListener.OnFriendListRemovedDelegate
    • CoreListener.OnGlobalStateChangedDelegate
    • CoreListener.OnImeeUserRegistrationDelegate
    • CoreListener.OnInfoReceivedDelegate
    • CoreListener.OnIsComposingReceivedDelegate
    • CoreListener.OnLastCallEndedDelegate
    • CoreListener.OnLogCollectionUploadProgressIndicationDelegate
    • CoreListener.OnLogCollectionUploadStateChangedDelegate
    • CoreListener.OnMessageReceivedDelegate
    • CoreListener.OnMessageReceivedUnableDecryptDelegate
    • CoreListener.OnMessageSentDelegate
    • CoreListener.OnMessagesReceivedDelegate
    • CoreListener.OnNetworkReachableDelegate
    • CoreListener.OnNewSubscriptionRequestedDelegate
    • CoreListener.OnNotifyPresenceReceivedDelegate
    • CoreListener.OnNotifyPresenceReceivedForUriOrTelDelegate
    • CoreListener.OnNotifyReceivedDelegate
    • CoreListener.OnNotifySentDelegate
    • CoreListener.OnPreviewDisplayErrorOccurredDelegate
    • CoreListener.OnPublishStateChangedDelegate
    • CoreListener.OnPushNotificationReceivedDelegate
    • CoreListener.OnQrcodeFoundDelegate
    • CoreListener.OnReferReceivedDelegate
    • CoreListener.OnRegistrationStateChangedDelegate
    • CoreListener.OnSubscribeReceivedDelegate
    • CoreListener.OnSubscriptionStateChangedDelegate
    • CoreListener.OnTransferStateChangedDelegate
    • CoreListener.OnVersionUpdateCheckResultReceivedDelegate
    • CoreLogCollectionUploadState
    • DialPlan
    • DigestAuthenticationPolicy
    • EcCalibratorStatus
    • ErrorInfo
    • Event
    • EventListener
    • EventListener.OnNotifyResponseDelegate
    • EventLog
    • EventLogType
    • Factory
    • Friend
    • FriendCapability
    • FriendList
    • FriendListener
    • FriendListener.OnPresenceReceivedDelegate
    • FriendListListener
    • FriendListListener.OnContactCreatedDelegate
    • FriendListListener.OnContactDeletedDelegate
    • FriendListListener.OnContactUpdatedDelegate
    • FriendListListener.OnPresenceReceivedDelegate
    • FriendListListener.OnSyncStatusChangedDelegate
    • FriendListStatus
    • FriendListSyncStatus
    • FriendListType
    • FriendPhoneNumber
    • GlobalState
    • Headers
    • IceState
    • ImNotifPolicy
    • InfoMessage
    • Ldap
    • LdapAuthMethod
    • LdapCertVerificationMode
    • LdapCheck
    • LdapDebugLevel
    • LdapParams
    • LimeState
    • LinphoneException
    • LinphoneObject
    • LinphoneWrapper
    • LogCollectionState
    • LoggingService
    • LoggingServiceListener
    • LoggingServiceListener.OnLogMessageWrittenDelegate
    • LogLevel
    • MagicSearch
    • MagicSearchAggregation
    • MagicSearchListener
    • MagicSearchListener.OnLdapHaveMoreResultsDelegate
    • MagicSearchListener.OnSearchResultsReceivedDelegate
    • MagicSearchSource
    • MediaDirection
    • MediaEncryption
    • MediaResourceMode
    • MediastreamerFactory
    • NatPolicy
    • Participant
    • ParticipantDevice
    • ParticipantDeviceDisconnectionMethod
    • ParticipantDeviceIdentity
    • ParticipantDeviceJoiningMethod
    • ParticipantDeviceListener
    • ParticipantDeviceListener.OnIsMutedDelegate
    • ParticipantDeviceListener.OnIsSpeakingChangedDelegate
    • ParticipantDeviceListener.OnStateChangedDelegate
    • ParticipantDeviceListener.OnStreamAvailabilityChangedDelegate
    • ParticipantDeviceListener.OnStreamCapabilityChangedDelegate
    • ParticipantDeviceListener.OnVideoDisplayErrorOccurredDelegate
    • ParticipantDeviceState
    • ParticipantImdnState
    • PayloadType
    • Player
    • PlayerListener
    • PlayerListener.OnEofReachedDelegate
    • PlayerState
    • PresenceActivity
    • PresenceActivityType
    • PresenceBasicStatus
    • PresenceModel
    • PresenceNote
    • PresencePerson
    • PresenceService
    • Privacy
    • ProxyConfig
    • PublishState
    • PushNotificationConfig
    • PushNotificationMessage
    • Range
    • Reason
    • Recorder
    • RecorderFileFormat
    • RecorderParams
    • RecorderState
    • RegistrationState
    • SearchResult
    • SecurityEventType
    • SessionExpiresRefresher
    • SrtpSuite
    • StreamType
    • SubscribePolicy
    • SubscriptionDir
    • SubscriptionState
    • SupportLevel
    • ToneID
    • Transports
    • TransportType
    • Tunnel
    • TunnelConfig
    • TunnelMode
    • UpnpState
    • Vcard
    • VersionUpdateCheckResult
    • VideoActivationPolicy
    • VideoDefinition
    • VideoSourceDescriptor
    • VideoSourceType
    • XmlRpcArgType
    • XmlRpcRequest
    • XmlRpcRequestListener
    • XmlRpcRequestListener.OnResponseDelegate
    • XmlRpcSession
    • XmlRpcStatus
    • ZrtpKeyAgreement
    • ZrtpPeerStatus

Class FriendList

This object representing a list of Friend.

You can use it to store contacts locally or synchronize them through CardDAV protocol.

Inheritance
System.Object
LinphoneObject
FriendList
Inherited Members
LinphoneObject.StringArrayToBctbxList(IEnumerable<String>)
LinphoneObject.CleanStringArrayPtrs()
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Linphone
Assembly: cs.temp.dll.dll
Syntax
public class FriendList : LinphoneObject

Properties

Core

Returns the Core object attached to this LinphoneFriendList.

Declaration
public Core Core { get; }
Property Value
Type Description
Core

a Core object

DisplayName

Get the display name of the friend list.

Declaration
public string DisplayName { get; set; }
Property Value
Type Description
System.String

The display name of the friend list.

Friends

Retrieves the list of Friend from this LinphoneFriendList.

Declaration
public IEnumerable<Friend> Friends { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<Friend>

A list of Friend

IsSubscriptionBodyless

Get wheter the subscription of the friend list is bodyless or not.

Declaration
public bool IsSubscriptionBodyless { get; }
Property Value
Type Description
System.Boolean

Wheter the subscription of the friend list is bodyless or not.

Listener

Declaration
public FriendListListener Listener { get; set; }
Property Value
Type Description
FriendListListener

RlsAddress

Get the RLS (Resource List Server) URI associated with the friend list to subscribe to these friends presence.

Declaration
public Address RlsAddress { get; set; }
Property Value
Type Description
Address

The RLS URI as Address associated with the friend list.

RlsUri

Get the RLS (Resource List Server) URI associated with the friend list to subscribe to these friends presence.

Declaration
public string RlsUri { get; set; }
Property Value
Type Description
System.String

The RLS URI associated with the friend list.

SubscriptionBodyless

Set wheter the subscription of the friend list is bodyless or not.

Declaration
public bool SubscriptionBodyless { set; }
Property Value
Type Description
System.Boolean

SubscriptionsEnabled

Gets whether subscription to NOTIFYs are enabled or not.

Declaration
public bool SubscriptionsEnabled { get; set; }
Property Value
Type Description
System.Boolean

Whether subscriptions are enabled or not

Type

Get the FriendListType of a friend list.

Declaration
public FriendListType Type { get; set; }
Property Value
Type Description
FriendListType

the FriendListType of the list

Uri

Get the URI associated with the friend list.

Declaration
public string Uri { get; set; }
Property Value
Type Description
System.String

The URI associated with the friend list.

Methods

AddFriend(Friend)

Add a friend to a friend list.

If or when a remote CardDAV server will be attached to the list, the friend will be sent to the server.

Declaration
public FriendListStatus AddFriend(Friend linphoneFriend)
Parameters
Type Name Description
Friend linphoneFriend

Friend object to add to the friend list.

Returns
Type Description
FriendListStatus

OK if successfully added, InvalidFriend if the friend is not valid.

AddLocalFriend(Friend)

Add a friend to a friend list.

The friend will never be sent to a remote CardDAV server. Warning! #LinphoneFriends added this way will be removed on the next synchronization, and the callback contact_deleted will be called.

Declaration
public FriendListStatus AddLocalFriend(Friend linphoneFriend)
Parameters
Type Name Description
Friend linphoneFriend

Friend object to add to the friend list.

Returns
Type Description
FriendListStatus

OK if successfully added, InvalidFriend if the friend is not valid.

ExportFriendsAsVcard4File(String)

Creates and export Friend objects from FriendList to a file using vCard 4 format.

Declaration
public void ExportFriendsAsVcard4File(string vcardFile)
Parameters
Type Name Description
System.String vcardFile

the path to a file that will contain the vCards

FindFriendByAddress(Address)

Find a friend in the friend list using a LinphoneAddress.

Declaration
public Friend FindFriendByAddress(Address address)
Parameters
Type Name Description
Address address

Address object of the friend we want to search for.

Returns
Type Description
Friend

A Friend if found, null otherwise.

FindFriendByPhoneNumber(String)

Find a friend in the friend list using a phone number.

Declaration
public Friend FindFriendByPhoneNumber(string phoneNumber)
Parameters
Type Name Description
System.String phoneNumber

a string of the phone number for which we want to find a friend.

Returns
Type Description
Friend

A Friend if found, null otherwise.

FindFriendByRefKey(String)

Find a friend in the friend list using a ref key.

Declaration
public Friend FindFriendByRefKey(string refKey)
Parameters
Type Name Description
System.String refKey

The ref key string of the friend we want to search for.

Returns
Type Description
Friend

A Friend if found, null otherwise.

FindFriendByUri(String)

Find a friend in the friend list using an URI string.

Declaration
public Friend FindFriendByUri(string uri)
Parameters
Type Name Description
System.String uri

A string containing the URI of the friend we want to search for.

Returns
Type Description
Friend

A Friend if found, null otherwise.

FindFriendsByAddress(Address)

Find all friends in the friend list using a LinphoneAddress.

Declaration
public IEnumerable<Friend> FindFriendsByAddress(Address address)
Parameters
Type Name Description
Address address

Address object of the friends we want to search for.

Returns
Type Description
System.Collections.Generic.IEnumerable<Friend>

A list of Friend if found, null otherwise.

FindFriendsByUri(String)

Find all friends in the friend list using an URI string.

Declaration
public IEnumerable<Friend> FindFriendsByUri(string uri)
Parameters
Type Name Description
System.String uri

A string containing the URI of the friends we want to search for.

Returns
Type Description
System.Collections.Generic.IEnumerable<Friend>

A list of Friend if found, null otherwise.

ImportFriendsFromVcard4Buffer(String)

Creates and adds Friend objects to FriendList from a buffer that contains the vCard(s) to parse.

Declaration
public int ImportFriendsFromVcard4Buffer(string vcardBuffer)
Parameters
Type Name Description
System.String vcardBuffer

the buffer that contains the vCard(s) to parse

Returns
Type Description
System.Int32

the amount of linphone friends created

ImportFriendsFromVcard4File(String)

Creates and adds Friend objects to FriendList from a file that contains the vCard(s) to parse.

Declaration
public int ImportFriendsFromVcard4File(string vcardFile)
Parameters
Type Name Description
System.String vcardFile

the path to a file that contains the vCard(s) to parse

Returns
Type Description
System.Int32

the amount of linphone friends created

NotifyPresence(PresenceModel)

Notify our presence to all the friends in the friend list that have subscribed to our presence directly (not using a RLS).

Declaration
public void NotifyPresence(PresenceModel presence)
Parameters
Type Name Description
PresenceModel presence

PresenceModel object.

RemoveFriend(Friend)

Remove a friend from a friend list.

Declaration
public FriendListStatus RemoveFriend(Friend linphoneFriend)
Parameters
Type Name Description
Friend linphoneFriend

Friend object to remove from the friend list.

Returns
Type Description
FriendListStatus

OK if removed successfully, NonExistentFriend if the friend is not in the list.

SynchronizeFriendsFromServer()

Starts a CardDAV synchronization using value set using linphone_friend_list_set_uri.

Declaration
public void SynchronizeFriendsFromServer()

UpdateDirtyFriends()

Goes through all the Friend that are dirty and does a CardDAV PUT to update the server.

Declaration
public void UpdateDirtyFriends()

UpdateRevision(Int32)

Sets the revision from the last synchronization.

Declaration
public void UpdateRevision(int revision)
Parameters
Type Name Description
System.Int32 revision

The revision

UpdateSubscriptions()

Update presence subscriptions for the entire list.

Calling this function is necessary when list subscriptions are enabled, ie when a RLS presence server is used.

Declaration
public void UpdateSubscriptions()
In This Article
Back to top Generated by DocFX