public class CoreListenerStub extends java.lang.Object implements CoreListener
Constructor and Description |
---|
CoreListenerStub() |
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)
Registration state notification callback prototype.
|
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.
|
public void onDtmfReceived(@NonNull Core core, @NonNull Call call, int dtmf)
CoreListener
onDtmfReceived
in interface CoreListener
core
- the LinphoneCore call
- the LinphoneCall that received the dtmf dtmf
- the ascii code of the dtmf public void onSubscriptionStateChanged(@NonNull Core core, @NonNull Event linphoneEvent, SubscriptionState state)
CoreListener
onSubscriptionStateChanged
in interface CoreListener
core
- LinphoneCore object linphoneEvent
- the LinphoneEvent state
- the new LinphoneSubscriptionState public void onAccountRegistrationStateChanged(@NonNull Core core, @NonNull Account account, RegistrationState state, @NonNull java.lang.String message)
CoreListener
onAccountRegistrationStateChanged
in interface CoreListener
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 public void onEcCalibrationAudioUninit(@NonNull Core core)
CoreListener
onEcCalibrationAudioUninit
in interface CoreListener
core
- The LinphoneCore. public void onChatRoomRead(@NonNull Core core, @NonNull ChatRoom chatRoom)
CoreListener
onChatRoomRead
in interface CoreListener
core
- LinphoneCore object chatRoom
- LinphoneChatRoom that has been marked as read. public void onCallStatsUpdated(@NonNull Core core, @NonNull Call call, @NonNull CallStats callStats)
CoreListener
onCallStatsUpdated
in interface CoreListener
core
- the LinphoneCore call
- the call callStats
- the call statistics. public void onReferReceived(@NonNull Core core, @NonNull java.lang.String referTo)
CoreListener
onReferReceived
in interface CoreListener
core
- the LinphoneCore referTo
- the address of the refer public void onImeeUserRegistration(@NonNull Core core, boolean status, @NonNull java.lang.String userId, @NonNull java.lang.String info)
CoreListener
onImeeUserRegistration
in interface CoreListener
core
- LinphoneCore object status
- the return status of the registration action. userId
- the userId published on the encryption engine server info
- information about failure public void onEcCalibrationAudioInit(@NonNull Core core)
CoreListener
onEcCalibrationAudioInit
in interface CoreListener
core
- The LinphoneCore. public void onNetworkReachable(@NonNull Core core, boolean reachable)
CoreListener
onNetworkReachable
in interface CoreListener
core
- the LinphoneCore reachable
- true if network is reachable. public void onMessageReceivedUnableDecrypt(@NonNull Core core, @NonNull ChatRoom chatRoom, @NonNull ChatMessage message)
CoreListener
onMessageReceivedUnableDecrypt
in interface CoreListener
core
- LinphoneCore object chatRoom
- LinphoneChatRoom involved in this conversation. Can be bemessage
- LinphoneChatMessage incoming message public void onPublishStateChanged(@NonNull Core core, @NonNull Event linphoneEvent, PublishState state)
CoreListener
onPublishStateChanged
in interface CoreListener
core
- LinphoneCore object linphoneEvent
- the LinphoneEvent state
- the new LinphonePublishState public void onQrcodeFound(@NonNull Core core, @Nullable java.lang.String result)
CoreListener
onQrcodeFound
in interface CoreListener
core
- LinphoneCore object result
- The result of the decoded qrcode public void onNotifyPresenceReceivedForUriOrTel(@NonNull Core core, @NonNull Friend linphoneFriend, @NonNull java.lang.String uriOrTel, @NonNull PresenceModel presenceModel)
CoreListener
onNotifyPresenceReceivedForUriOrTel
in interface CoreListener
core
- LinphoneCore object linphoneFriend
- LinphoneFriend object uriOrTel
- The URI or phone number for which the presence model haspresenceModel
- The new LinphonePresenceModel public void onGlobalStateChanged(@NonNull Core core, GlobalState state, @NonNull java.lang.String message)
CoreListener
onGlobalStateChanged
in interface CoreListener
core
- the LinphoneCore. state
- the LinphoneGlobalState message
- informational message. public void onNotifyPresenceReceived(@NonNull Core core, @NonNull Friend linphoneFriend)
CoreListener
onNotifyPresenceReceived
in interface CoreListener
core
- LinphoneCore object linphoneFriend
- Updated LinphoneFriend public void onCallCreated(@NonNull Core core, @NonNull Call call)
CoreListener
onCallCreated
in interface CoreListener
core
- LinphoneCore object that has created the call call
- The newly created LinphoneCall object public void onBuddyInfoUpdated(@NonNull Core core, @NonNull Friend linphoneFriend)
CoreListener
onBuddyInfoUpdated
in interface CoreListener
core
- the LinphoneCore linphoneFriend
- the LinphoneFriend that has been updated public void onInfoReceived(@NonNull Core core, @NonNull Call call, @NonNull InfoMessage message)
CoreListener
onInfoReceived
in interface CoreListener
core
- the LinphoneCore call
- the call whose info message belongs to. message
- the info message. public void onLastCallEnded(@NonNull Core core)
CoreListener
onLastCallEnded
in interface CoreListener
core
- LinphoneCore object public void onFriendListRemoved(@NonNull Core core, @NonNull FriendList friendList)
CoreListener
onFriendListRemoved
in interface CoreListener
core
- LinphoneCore object friendList
- LinphoneFriendList object public void onAuthenticationRequested(@NonNull Core core, @NonNull AuthInfo authInfo, @NonNull AuthMethod method)
CoreListener
onAuthenticationRequested
in interface CoreListener
core
- the LinphoneCore authInfo
- a LinphoneAuthInfo pre-filled with username, realm and domainmethod
- the type of authentication requested as LinphoneAuthMethod enum public void onConferenceInfoOnParticipantSent(@NonNull Core core, @NonNull ConferenceInfo conferenceInfo, @NonNull Address participant)
CoreListener
onConferenceInfoOnParticipantSent
in interface CoreListener
core
- The LinphoneCore object. conferenceInfo
- The LinphoneConferenceInfo object that was sent. participant
- The LinphoneAddress object corresponding to the participant.public void onSubscribeReceived(@NonNull Core core, @NonNull Event linphoneEvent, @NonNull java.lang.String subscribeEvent, @NonNull Content body)
CoreListener
onSubscribeReceived
in interface CoreListener
core
- LinphoneCore object linphoneEvent
- the LinphoneEvent received subscribeEvent
- The event as string body
- the LinphoneContent of the event public void onFirstCallStarted(@NonNull Core core)
CoreListener
onFirstCallStarted
in interface CoreListener
core
- LinphoneCore object public void onLogCollectionUploadProgressIndication(@NonNull Core core, int offset, int total)
CoreListener
onLogCollectionUploadProgressIndication
in interface CoreListener
core
- LinphoneCore object offset
- the number of bytes sent since the start of the upload total
- the total number of bytes to upload public void onTransferStateChanged(@NonNull Core core, @NonNull Call transfered, Call.State callState)
CoreListener
onTransferStateChanged
in interface CoreListener
core
- the LinphoneCore transfered
- the LinphoneCall that was transfered callState
- the LinphoneCallState of the call to transfer target at thepublic void onCallLogUpdated(@NonNull Core core, @NonNull CallLog callLog)
CoreListener
onCallLogUpdated
in interface CoreListener
core
- the LinphoneCore callLog
- the new LinphoneCallLog entry added. public void onConferenceInfoOnParticipantError(@NonNull Core core, @NonNull ConferenceInfo conferenceInfo, @NonNull Address participant, ConferenceInfoError error)
CoreListener
onConferenceInfoOnParticipantError
in interface CoreListener
core
- The LinphoneCore object. conferenceInfo
- The LinphoneConferenceInfo object that was sent. participant
- The LinphoneAddress object corresponding to the participant.public void onFriendListCreated(@NonNull Core core, @NonNull FriendList friendList)
CoreListener
onFriendListCreated
in interface CoreListener
core
- LinphoneCore object friendList
- LinphoneFriendList object public void onNotifySent(@NonNull Core core, @NonNull Event linphoneEvent, @NonNull Content body)
CoreListener
onNotifySent
in interface CoreListener
core
- LinphoneCore object linphoneEvent
- the LinphoneEvent received body
- the LinphoneContent of the event public void onChatRoomSubjectChanged(@NonNull Core core, @NonNull ChatRoom chatRoom)
CoreListener
onChatRoomSubjectChanged
in interface CoreListener
core
- LinphoneCore object chatRoom
- The LinphoneChatRoom object for which the subject has changed public void onNewSubscriptionRequested(@NonNull Core core, @NonNull Friend linphoneFriend, @NonNull java.lang.String url)
CoreListener
onNewSubscriptionRequested
in interface CoreListener
core
- LinphoneCore object linphoneFriend
- The LinphoneFriend aimed by the subscription. url
- URI of the subscriber public void onLogCollectionUploadStateChanged(@NonNull Core core, Core.LogCollectionUploadState state, @NonNull java.lang.String info)
CoreListener
onLogCollectionUploadStateChanged
in interface CoreListener
core
- LinphoneCore object state
- The state of the log collection upload info
- Additional information: error message in case of error state, URLpublic void onIsComposingReceived(@NonNull Core core, @NonNull ChatRoom chatRoom)
CoreListener
onIsComposingReceived
in interface CoreListener
core
- LinphoneCore object chatRoom
- LinphoneChatRoom involved in the conversation. public void onAudioDeviceChanged(@NonNull Core core, @NonNull AudioDevice audioDevice)
CoreListener
onAudioDeviceChanged
in interface CoreListener
core
- LinphoneCore object audioDevice
- the newly used LinphoneAudioDevice object public void onCallIdUpdated(@NonNull Core core, @NonNull java.lang.String previousCallId, @NonNull java.lang.String currentCallId)
CoreListener
onCallIdUpdated
in interface CoreListener
core
- the LinphoneCore previousCallId
- the previous callid. currentCallId
- the new callid. public void onEcCalibrationResult(@NonNull Core core, EcCalibratorStatus status, int delayMs)
CoreListener
onEcCalibrationResult
in interface CoreListener
core
- The LinphoneCore. status
- The LinphoneEcCalibratorStatus of the calibrator. delayMs
- The measured delay if available. public void onVersionUpdateCheckResultReceived(@NonNull Core core, @NonNull VersionUpdateCheckResult result, java.lang.String version, @Nullable java.lang.String url)
CoreListener
onVersionUpdateCheckResultReceived
in interface CoreListener
core
- LinphoneCore object result
- The result of the version update check url
- The url where to download the new version if the result ispublic void onAudioDevicesListUpdated(@NonNull Core core)
CoreListener
onAudioDevicesListUpdated
in interface CoreListener
core
- LinphoneCore object public void onRegistrationStateChanged(@NonNull Core core, @NonNull ProxyConfig proxyConfig, RegistrationState state, @NonNull java.lang.String message)
CoreListener
onRegistrationStateChanged
in interface CoreListener
core
- the LinphoneCore proxyConfig
- the LinphoneProxyConfig which state has changed state
- the current LinphoneRegistrationState message
- a non null informational message about the state public void onMessageSent(@NonNull Core core, @NonNull ChatRoom chatRoom, @NonNull ChatMessage message)
CoreListener
onMessageSent
in interface CoreListener
core
- LinphoneCore object chatRoom
- LinphoneChatRoom involved in this conversation. Can be bemessage
- LinphoneChatMessage outgoing message public void onCallStateChanged(@NonNull Core core, @NonNull Call call, Call.State state, @NonNull java.lang.String message)
CoreListener
onCallStateChanged
in interface CoreListener
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. public void onConfiguringStatus(@NonNull Core core, ConfiguringState status, @Nullable java.lang.String message)
CoreListener
onConfiguringStatus
in interface CoreListener
core
- the LinphoneCore status
- the current LinphoneConfiguringState message
- informational message. public void onNotifyReceived(@NonNull Core core, @NonNull Event linphoneEvent, @NonNull java.lang.String notifiedEvent, @NonNull Content body)
CoreListener
onNotifyReceived
in interface CoreListener
core
- LinphoneCore object linphoneEvent
- the LinphoneEvent received notifiedEvent
- The event as string body
- the LinphoneContent of the event public void onChatRoomEphemeralMessageDeleted(@NonNull Core core, @NonNull ChatRoom chatRoom)
CoreListener
onChatRoomEphemeralMessageDeleted
in interface CoreListener
core
- LinphoneCore object chatRoom
- The LinphoneChatRoom object for which a message has expired. public void onChatRoomStateChanged(@NonNull Core core, @NonNull ChatRoom chatRoom, ChatRoom.State state)
CoreListener
onChatRoomStateChanged
in interface CoreListener
core
- LinphoneCore object chatRoom
- The LinphoneChatRoom object for which the state has changed state
- the current LinphoneChatRoomState public void onMessageReceived(@NonNull Core core, @NonNull ChatRoom chatRoom, @NonNull ChatMessage message)
CoreListener
onMessageReceived
in interface CoreListener
core
- LinphoneCore object chatRoom
- LinphoneChatRoom involved in this conversation. Can be createdmessage
- LinphoneChatMessage incoming message public void onConferenceStateChanged(@NonNull Core core, @NonNull Conference conference, Conference.State state)
CoreListener
onConferenceStateChanged
in interface CoreListener
core
- LinphoneCore object conference
- The LinphoneConference object for which the state has changedstate
- the current LinphoneChatRoomState public void onConferenceInfoOnSent(@NonNull Core core, @NonNull ConferenceInfo conferenceInfo)
CoreListener
onConferenceInfoOnSent
in interface CoreListener
core
- The LinphoneCore object. conferenceInfo
- The LinphoneConferenceInfo object that was sent. public void onCallEncryptionChanged(@NonNull Core core, @NonNull Call call, boolean mediaEncryptionEnabled, @Nullable java.lang.String authenticationToken)
CoreListener
onCallEncryptionChanged
in interface CoreListener
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