public interface CoreListener
Modifier and Type | Method and Description |
---|---|
void |
onAccountRegistrationStateChanged(Core core,
Account account,
RegistrationState state,
java.lang.String message)
Callback notifying that a LinphoneAccount has its registration state changed.
|
void |
onAudioDeviceChanged(Core core,
AudioDevice audioDevice)
Callback prototype telling that the audio device for at least one call has
changed. |
void |
onAudioDevicesListUpdated(Core core)
Callback prototype telling the audio devices list has been updated.
|
void |
onAuthenticationRequested(Core core,
AuthInfo authInfo,
AuthMethod method)
Callback for requesting authentication information to application or user.
|
void |
onBuddyInfoUpdated(Core core,
Friend linphoneFriend)
Callback prototype when using the buddy plugin.
|
void |
onCallCreated(Core core,
Call call)
Callback notifying that a new LinphoneCall (either incoming or outgoing) has
been created. |
void |
onCallEncryptionChanged(Core core,
Call call,
boolean mediaEncryptionEnabled,
java.lang.String authenticationToken)
Call encryption changed callback.
|
void |
onCallIdUpdated(Core core,
java.lang.String previousCallId,
java.lang.String currentCallId)
Callback to notify the callid of a call has been updated.
|
void |
onCallLogUpdated(Core core,
CallLog callLog)
Callback to notify a new call-log entry has been added.
|
void |
onCallStateChanged(Core core,
Call call,
Call.State state,
java.lang.String message)
Call state notification callback.
|
void |
onCallStatsUpdated(Core core,
Call call,
CallStats callStats)
Callback for receiving quality statistics for calls.
|
void |
onChatRoomEphemeralMessageDeleted(Core core,
ChatRoom chatRoom)
Callback prototype telling that a LinphoneChatRoom ephemeral message has
expired. |
void |
onChatRoomRead(Core core,
ChatRoom chatRoom)
Chat room marked as read callback.
|
void |
onChatRoomStateChanged(Core core,
ChatRoom chatRoom,
ChatRoom.State state)
Callback prototype telling that a LinphoneChatRoom state has changed.
|
void |
onChatRoomSubjectChanged(Core core,
ChatRoom chatRoom)
Callback prototype telling that a LinphoneChatRoom subject has changed.
|
void |
onConferenceInfoOnParticipantError(Core core,
ConferenceInfo conferenceInfo,
Address participant,
ConferenceInfoError error)
Callback notifying that a conference invitation could not be sent to
LinphoneAddress. |
void |
onConferenceInfoOnParticipantSent(Core core,
ConferenceInfo conferenceInfo,
Address participant)
Callback notifying that a conference invitation has been sent to
LinphoneAddress. |
void |
onConferenceInfoOnSent(Core core,
ConferenceInfo conferenceInfo)
Callback notifying that a conference invitation has been sent to all
participants. |
void |
onConferenceStateChanged(Core core,
Conference conference,
Conference.State state)
Callback prototype telling that a LinphoneConference state has changed.
|
void |
onConfiguringStatus(Core core,
ConfiguringState status,
java.lang.String message)
Callback prototype for configuring status changes notification.
|
void |
onDtmfReceived(Core core,
Call call,
int dtmf)
Callback for being notified of DTMFs received.
|
void |
onEcCalibrationAudioInit(Core core)
Function prototype used by #linphone_core_cbs_set_ec_calibrator_audio_init().
|
void |
onEcCalibrationAudioUninit(Core core)
Function prototype used by #linphone_core_cbs_set_ec_calibrator_audio_uninit().
|
void |
onEcCalibrationResult(Core core,
EcCalibratorStatus status,
int delayMs)
Function prototype used by #linphone_core_cbs_set_ec_calibrator_result().
|
void |
onFirstCallStarted(Core core)
Callback prototype telling a call has started (incoming or outgoing) while
there was no other call. |
void |
onFriendListCreated(Core core,
FriendList friendList)
Callback prototype for reporting when a friend list has been added to the core
friends list. |
void |
onFriendListRemoved(Core core,
FriendList friendList)
Callback prototype for reporting when a friend list has been removed from the
core friends list. |
void |
onGlobalStateChanged(Core core,
GlobalState state,
java.lang.String message)
Global state notification callback.
|
void |
onImeeUserRegistration(Core core,
boolean status,
java.lang.String userId,
java.lang.String info)
Callback prototype telling that an Instant Message Encryption Engine user
registered on the server with or without success. |
void |
onInfoReceived(Core core,
Call call,
InfoMessage message)
Callback prototype for receiving info messages.
|
void |
onIsComposingReceived(Core core,
ChatRoom chatRoom)
Is composing notification callback prototype.
|
void |
onLastCallEnded(Core core)
Callback prototype telling the last call has ended
(#LinphoneCore.get_calls_nb() returns 0) |
void |
onLogCollectionUploadProgressIndication(Core core,
int offset,
int total)
Callback prototype for reporting log collection upload progress indication.
|
void |
onLogCollectionUploadStateChanged(Core core,
Core.LogCollectionUploadState state,
java.lang.String info)
Callback prototype for reporting log collection upload state change.
|
void |
onMessageReceived(Core core,
ChatRoom chatRoom,
ChatMessage message)
Chat message callback prototype.
|
void |
onMessageReceivedUnableDecrypt(Core core,
ChatRoom chatRoom,
ChatMessage message)
Chat message not decrypted callback prototype.
|
void |
onMessageSent(Core core,
ChatRoom chatRoom,
ChatMessage message)
Called after the #send method of the LinphoneChatMessage was called.
|
void |
onNetworkReachable(Core core,
boolean reachable)
Callback prototype for reporting network change either automatically detected
or notified by linphone_core_set_network_reachable. |
void |
onNewSubscriptionRequested(Core core,
Friend linphoneFriend,
java.lang.String url)
Reports that a new subscription request has been received and wait for a
decision. |
void |
onNotifyPresenceReceived(Core core,
Friend linphoneFriend)
Report status change for a friend previously added to the LinphoneCore with
linphone_core_add_friend(). |
void |
onNotifyPresenceReceivedForUriOrTel(Core core,
Friend linphoneFriend,
java.lang.String uriOrTel,
PresenceModel presenceModel)
Reports presence model change for a specific URI or phone number of a friend.
|
void |
onNotifyReceived(Core core,
Event linphoneEvent,
java.lang.String notifiedEvent,
Content body)
Callback prototype for notifying the application about notification received
from the network. |
void |
onNotifySent(Core core,
Event linphoneEvent,
Content body)
Callback prototype for notifying the application about notification that is
being sent. |
void |
onPublishStateChanged(Core core,
Event linphoneEvent,
PublishState state)
Callback prototype for notifying the application about changes of publish
states. |
void |
onQrcodeFound(Core core,
java.lang.String result)
Callback prototype telling the result of decoded qrcode.
|
void |
onReferReceived(Core core,
java.lang.String referTo)
Callback prototype for when a refer is received.
|
void |
onRegistrationStateChanged(Core core,
ProxyConfig proxyConfig,
RegistrationState state,
java.lang.String message)
Deprecated.
06/04/2020 Use LinphoneCoreCbsAccountRegistrationStateChangedCb
instead |
void |
onSubscribeReceived(Core core,
Event linphoneEvent,
java.lang.String subscribeEvent,
Content body)
Callback prototype for notifying the application about subscription received
from the network. |
void |
onSubscriptionStateChanged(Core core,
Event linphoneEvent,
SubscriptionState state)
Callback prototype for notifying the application about changes of subscription
states, including arrival of new subscriptions. |
void |
onTransferStateChanged(Core core,
Call transfered,
Call.State callState)
Callback for notifying progresses of transfers.
|
void |
onVersionUpdateCheckResultReceived(Core core,
VersionUpdateCheckResult result,
java.lang.String version,
java.lang.String url)
Callback prototype for reporting the result of a version update check.
|
void onDtmfReceived(@NonNull Core core, @NonNull Call call, int dtmf)
core
- the LinphoneCore call
- the LinphoneCall that received the dtmf dtmf
- the ascii code of the dtmf void onSubscriptionStateChanged(@NonNull Core core, @NonNull Event linphoneEvent, SubscriptionState state)
core
- LinphoneCore object linphoneEvent
- the LinphoneEvent state
- the new LinphoneSubscriptionState void onAccountRegistrationStateChanged(@NonNull Core core, @NonNull Account account, RegistrationState state, @NonNull java.lang.String message)
core
- The LinphoneCore object. account
- The LinphoneAccount object which has its registration changed. state
- The new state for this account. message
- a non null informational message about the state void onEcCalibrationAudioUninit(@NonNull Core core)
core
- The LinphoneCore. void onChatRoomRead(@NonNull Core core, @NonNull ChatRoom chatRoom)
core
- LinphoneCore object chatRoom
- LinphoneChatRoom that has been marked as read. void onCallStatsUpdated(@NonNull Core core, @NonNull Call call, @NonNull CallStats callStats)
core
- the LinphoneCore call
- the call callStats
- the call statistics. void onReferReceived(@NonNull Core core, @NonNull java.lang.String referTo)
core
- the LinphoneCore referTo
- the address of the refer void onImeeUserRegistration(@NonNull Core core, boolean status, @NonNull java.lang.String userId, @NonNull java.lang.String info)
core
- LinphoneCore object status
- the return status of the registration action. userId
- the userId published on the encryption engine server info
- information about failure void onEcCalibrationAudioInit(@NonNull Core core)
core
- The LinphoneCore. void onNetworkReachable(@NonNull Core core, boolean reachable)
core
- the LinphoneCore reachable
- true if network is reachable. void onMessageReceivedUnableDecrypt(@NonNull Core core, @NonNull ChatRoom chatRoom, @NonNull ChatMessage message)
core
- LinphoneCore object chatRoom
- LinphoneChatRoom involved in this conversation. Can be bemessage
- LinphoneChatMessage incoming message void onPublishStateChanged(@NonNull Core core, @NonNull Event linphoneEvent, PublishState state)
core
- LinphoneCore object linphoneEvent
- the LinphoneEvent state
- the new LinphonePublishState void onQrcodeFound(@NonNull Core core, @Nullable java.lang.String result)
core
- LinphoneCore object result
- The result of the decoded qrcode void onNotifyPresenceReceivedForUriOrTel(@NonNull Core core, @NonNull Friend linphoneFriend, @NonNull java.lang.String uriOrTel, @NonNull PresenceModel presenceModel)
core
- LinphoneCore object linphoneFriend
- LinphoneFriend object uriOrTel
- The URI or phone number for which the presence model haspresenceModel
- The new LinphonePresenceModel void onGlobalStateChanged(@NonNull Core core, GlobalState state, @NonNull java.lang.String message)
core
- the LinphoneCore. state
- the LinphoneGlobalState message
- informational message. void onNotifyPresenceReceived(@NonNull Core core, @NonNull Friend linphoneFriend)
core
- LinphoneCore object linphoneFriend
- Updated LinphoneFriend void onCallCreated(@NonNull Core core, @NonNull Call call)
core
- LinphoneCore object that has created the call call
- The newly created LinphoneCall object void onBuddyInfoUpdated(@NonNull Core core, @NonNull Friend linphoneFriend)
core
- the LinphoneCore linphoneFriend
- the LinphoneFriend that has been updated void onInfoReceived(@NonNull Core core, @NonNull Call call, @NonNull InfoMessage message)
core
- the LinphoneCore call
- the call whose info message belongs to. message
- the info message. void onLastCallEnded(@NonNull Core core)
core
- LinphoneCore object void onFriendListRemoved(@NonNull Core core, @NonNull FriendList friendList)
core
- LinphoneCore object friendList
- LinphoneFriendList object void onAuthenticationRequested(@NonNull Core core, @NonNull AuthInfo authInfo, @NonNull AuthMethod method)
core
- the LinphoneCore authInfo
- a LinphoneAuthInfo pre-filled with username, realm and domainmethod
- the type of authentication requested as LinphoneAuthMethod enum void onConferenceInfoOnParticipantSent(@NonNull Core core, @NonNull ConferenceInfo conferenceInfo, @NonNull Address participant)
core
- The LinphoneCore object. conferenceInfo
- The LinphoneConferenceInfo object that was sent. participant
- The LinphoneAddress object corresponding to the participant.void onSubscribeReceived(@NonNull Core core, @NonNull Event linphoneEvent, @NonNull java.lang.String subscribeEvent, @NonNull Content body)
core
- LinphoneCore object linphoneEvent
- the LinphoneEvent received subscribeEvent
- The event as string body
- the LinphoneContent of the event void onFirstCallStarted(@NonNull Core core)
core
- LinphoneCore object void onLogCollectionUploadProgressIndication(@NonNull Core core, int offset, int total)
core
- LinphoneCore object offset
- the number of bytes sent since the start of the upload total
- the total number of bytes to upload void onTransferStateChanged(@NonNull Core core, @NonNull Call transfered, Call.State callState)
core
- the LinphoneCore transfered
- the LinphoneCall that was transfered callState
- the LinphoneCallState of the call to transfer target at thevoid onCallLogUpdated(@NonNull Core core, @NonNull CallLog callLog)
core
- the LinphoneCore callLog
- the new LinphoneCallLog entry added. void onConferenceInfoOnParticipantError(@NonNull Core core, @NonNull ConferenceInfo conferenceInfo, @NonNull Address participant, ConferenceInfoError error)
core
- The LinphoneCore object. conferenceInfo
- The LinphoneConferenceInfo object that was sent. participant
- The LinphoneAddress object corresponding to the participant.void onFriendListCreated(@NonNull Core core, @NonNull FriendList friendList)
core
- LinphoneCore object friendList
- LinphoneFriendList object void onNotifySent(@NonNull Core core, @NonNull Event linphoneEvent, @NonNull Content body)
core
- LinphoneCore object linphoneEvent
- the LinphoneEvent received body
- the LinphoneContent of the event void onChatRoomSubjectChanged(@NonNull Core core, @NonNull ChatRoom chatRoom)
core
- LinphoneCore object chatRoom
- The LinphoneChatRoom object for which the subject has changed void onNewSubscriptionRequested(@NonNull Core core, @NonNull Friend linphoneFriend, @NonNull java.lang.String url)
core
- LinphoneCore object linphoneFriend
- The LinphoneFriend aimed by the subscription. url
- URI of the subscriber void onLogCollectionUploadStateChanged(@NonNull Core core, Core.LogCollectionUploadState state, @NonNull java.lang.String info)
core
- LinphoneCore object state
- The state of the log collection upload info
- Additional information: error message in case of error state, URLvoid onIsComposingReceived(@NonNull Core core, @NonNull ChatRoom chatRoom)
core
- LinphoneCore object chatRoom
- LinphoneChatRoom involved in the conversation. void onAudioDeviceChanged(@NonNull Core core, @NonNull AudioDevice audioDevice)
core
- LinphoneCore object audioDevice
- the newly used LinphoneAudioDevice object void onCallIdUpdated(@NonNull Core core, @NonNull java.lang.String previousCallId, @NonNull java.lang.String currentCallId)
core
- the LinphoneCore previousCallId
- the previous callid. currentCallId
- the new callid. void onEcCalibrationResult(@NonNull Core core, EcCalibratorStatus status, int delayMs)
core
- The LinphoneCore. status
- The LinphoneEcCalibratorStatus of the calibrator. delayMs
- The measured delay if available. void onVersionUpdateCheckResultReceived(@NonNull Core core, @NonNull VersionUpdateCheckResult result, java.lang.String version, @Nullable java.lang.String url)
core
- LinphoneCore object result
- The result of the version update check url
- The url where to download the new version if the result isvoid onAudioDevicesListUpdated(@NonNull Core core)
core
- LinphoneCore object void onRegistrationStateChanged(@NonNull Core core, @NonNull ProxyConfig proxyConfig, RegistrationState state, @NonNull java.lang.String message)
core
- the LinphoneCore proxyConfig
- the LinphoneProxyConfig which state has changed state
- the current LinphoneRegistrationState message
- a non null informational message about the state void onMessageSent(@NonNull Core core, @NonNull ChatRoom chatRoom, @NonNull ChatMessage message)
core
- LinphoneCore object chatRoom
- LinphoneChatRoom involved in this conversation. Can be bemessage
- LinphoneChatMessage outgoing message void onCallStateChanged(@NonNull Core core, @NonNull Call call, Call.State state, @NonNull java.lang.String message)
core
- the LinphoneCore call
- the LinphoneCall object whose state is changed. state
- the new LinphoneCallState of the call message
- a non null informational message about the state. void onConfiguringStatus(@NonNull Core core, ConfiguringState status, @Nullable java.lang.String message)
core
- the LinphoneCore status
- the current LinphoneConfiguringState message
- informational message. void onNotifyReceived(@NonNull Core core, @NonNull Event linphoneEvent, @NonNull java.lang.String notifiedEvent, @NonNull Content body)
core
- LinphoneCore object linphoneEvent
- the LinphoneEvent received notifiedEvent
- The event as string body
- the LinphoneContent of the event void onChatRoomEphemeralMessageDeleted(@NonNull Core core, @NonNull ChatRoom chatRoom)
core
- LinphoneCore object chatRoom
- The LinphoneChatRoom object for which a message has expired. void onChatRoomStateChanged(@NonNull Core core, @NonNull ChatRoom chatRoom, ChatRoom.State state)
core
- LinphoneCore object chatRoom
- The LinphoneChatRoom object for which the state has changed state
- the current LinphoneChatRoomState void onMessageReceived(@NonNull Core core, @NonNull ChatRoom chatRoom, @NonNull ChatMessage message)
core
- LinphoneCore object chatRoom
- LinphoneChatRoom involved in this conversation. Can be createdmessage
- LinphoneChatMessage incoming message void onConferenceStateChanged(@NonNull Core core, @NonNull Conference conference, Conference.State state)
core
- LinphoneCore object conference
- The LinphoneConference object for which the state has changedstate
- the current LinphoneChatRoomState void onConferenceInfoOnSent(@NonNull Core core, @NonNull ConferenceInfo conferenceInfo)
core
- The LinphoneCore object. conferenceInfo
- The LinphoneConferenceInfo object that was sent. void onCallEncryptionChanged(@NonNull Core core, @NonNull Call call, boolean mediaEncryptionEnabled, @Nullable java.lang.String authenticationToken)
core
- the LinphoneCore call
- the LinphoneCall on which encryption is changed. mediaEncryptionEnabled
- whether encryption is activated. authenticationToken
- an authentication_token, currently set for ZRTP kind