public interface CoreListener
Modifier and Type | Method and Description |
---|---|
void |
onAuthenticationRequested(Core lc,
AuthInfo authInfo,
AuthMethod method)
Callback for requesting authentication information to application or user.
|
void |
onBuddyInfoUpdated(Core lc,
Friend lf)
Callback prototype.
|
void |
onCallCreated(Core lc,
Call call)
Callback notifying that a new LinphoneCall (either incoming or outgoing) has
been created.
|
void |
onCallEncryptionChanged(Core lc,
Call call,
boolean on,
java.lang.String authenticationToken)
Call encryption changed callback.
|
void |
onCallLogUpdated(Core lc,
CallLog newcl)
Callback to notify a new call-log entry has been added.
|
void |
onCallStateChanged(Core lc,
Call call,
Call.State cstate,
java.lang.String message)
Call state notification callback.
|
void |
onCallStatsUpdated(Core lc,
Call call,
CallStats stats)
Callback for receiving quality statistics for calls.
|
void |
onChatRoomEphemeralMessageDeleted(Core lc,
ChatRoom cr)
Callback prototype telling that a LinphoneChatRoom ephemeral message has
expired.
|
void |
onChatRoomRead(Core lc,
ChatRoom room)
Chat room marked as read callback.
|
void |
onChatRoomStateChanged(Core lc,
ChatRoom cr,
ChatRoom.State state)
Callback prototype telling that a LinphoneChatRoom state has changed.
|
void |
onChatRoomSubjectChanged(Core lc,
ChatRoom cr)
Callback prototype telling that a LinphoneChatRoom subject has changed.
|
void |
onConfiguringStatus(Core lc,
ConfiguringState status,
java.lang.String message)
Callback prototype for configuring status changes notification.
|
void |
onDtmfReceived(Core lc,
Call call,
int dtmf)
Callback for being notified of DTMFs received.
|
void |
onEcCalibrationAudioInit(Core lc)
Function prototype used by #linphone_core_cbs_set_ec_calibrator_audio_init().
|
void |
onEcCalibrationAudioUninit(Core lc)
Function prototype used by #linphone_core_cbs_set_ec_calibrator_audio_uninit().
|
void |
onEcCalibrationResult(Core lc,
EcCalibratorStatus status,
int delayMs)
Function prototype used by #linphone_core_cbs_set_ec_calibrator_result().
|
void |
onFriendListCreated(Core lc,
FriendList list)
Callback prototype for reporting when a friend list has been added to the core
friends list.
|
void |
onFriendListRemoved(Core lc,
FriendList list)
Callback prototype for reporting when a friend list has been removed from the
core friends list.
|
void |
onGlobalStateChanged(Core lc,
GlobalState gstate,
java.lang.String message)
Global state notification callback.
|
void |
onInfoReceived(Core lc,
Call call,
InfoMessage msg)
Callback prototype for receiving info messages.
|
void |
onIsComposingReceived(Core lc,
ChatRoom room)
Is composing notification callback prototype.
|
void |
onLogCollectionUploadProgressIndication(Core lc,
int offset,
int total)
Callback prototype for reporting log collection upload progress indication.
|
void |
onLogCollectionUploadStateChanged(Core lc,
Core.LogCollectionUploadState state,
java.lang.String info)
Callback prototype for reporting log collection upload state change.
|
void |
onMessageReceived(Core lc,
ChatRoom room,
ChatMessage message)
Chat message callback prototype.
|
void |
onMessageReceivedUnableDecrypt(Core lc,
ChatRoom room,
ChatMessage message)
Chat message not decrypted callback prototype.
|
void |
onMessageSent(Core lc,
ChatRoom room,
ChatMessage message)
Called after the #send method of the LinphoneChatMessage was called.
|
void |
onNetworkReachable(Core lc,
boolean reachable)
Callback prototype for reporting network change either automatically detected
or notified by linphone_core_set_network_reachable.
|
void |
onNewSubscriptionRequested(Core lc,
Friend lf,
java.lang.String url)
Reports that a new subscription request has been received and wait for a
decision.
|
void |
onNotifyPresenceReceived(Core lc,
Friend lf)
Report status change for a friend previously added to LinphoneCore.
|
void |
onNotifyPresenceReceivedForUriOrTel(Core lc,
Friend lf,
java.lang.String uriOrTel,
PresenceModel presenceModel)
Reports presence model change for a specific URI or phone number of a friend.
|
void |
onNotifyReceived(Core lc,
Event lev,
java.lang.String notifiedEvent,
Content body)
Callback prototype for notifying the application about notification received
from the network.
|
void |
onPublishStateChanged(Core lc,
Event lev,
PublishState state)
Callback prototype for notifying the application about changes of publish
states.
|
void |
onQrcodeFound(Core lc,
java.lang.String result)
Callback prototype telling the result of decoded qrcode.
|
void |
onReferReceived(Core lc,
java.lang.String referTo)
Callback prototype.
|
void |
onRegistrationStateChanged(Core lc,
ProxyConfig cfg,
RegistrationState cstate,
java.lang.String message)
Registration state notification callback prototype.
|
void |
onSubscribeReceived(Core lc,
Event lev,
java.lang.String subscribeEvent,
Content body)
Callback prototype for notifying the application about subscription received
from the network.
|
void |
onSubscriptionStateChanged(Core lc,
Event lev,
SubscriptionState state)
Callback prototype for notifying the application about changes of subscription
states, including arrival of new subscriptions.
|
void |
onTransferStateChanged(Core lc,
Call transfered,
Call.State newCallState)
Callback for notifying progresses of transfers.
|
void |
onVersionUpdateCheckResultReceived(Core lc,
VersionUpdateCheckResult result,
java.lang.String version,
java.lang.String url)
Callback prototype for reporting the result of a version update check.
|
void onTransferStateChanged(Core lc, Call transfered, Call.State newCallState)
newCallState
- the state of the call to transfer target at the far end.void onFriendListCreated(Core lc, FriendList list)
list
- LinphoneFriendList objectvoid onSubscriptionStateChanged(Core lc, Event lev, SubscriptionState state)
void onCallLogUpdated(Core lc, CallLog newcl)
newcl
- the new call log entry added.void onCallStateChanged(Core lc, Call call, Call.State cstate, java.lang.String message)
message
- a non null informational message about the state.void onAuthenticationRequested(Core lc, AuthInfo authInfo, AuthMethod method)
method
- the type of authentication requested Application shall reply to
this callback using linphone_core_add_auth_info.void onNotifyPresenceReceivedForUriOrTel(Core lc, Friend lf, java.lang.String uriOrTel, PresenceModel presenceModel)
presenceModel
- The new presence modelvoid onChatRoomStateChanged(Core lc, ChatRoom cr, ChatRoom.State state)
cr
- The LinphoneChatRoom object for which the state has changedvoid onNetworkReachable(Core lc, boolean reachable)
reachable
- true if network is reachable.void onNotifyReceived(Core lc, Event lev, java.lang.String notifiedEvent, Content body)
void onNewSubscriptionRequested(Core lc, Friend lf, java.lang.String url)
url
- of the subscribervoid onCallStatsUpdated(Core lc, Call call, CallStats stats)
stats
- the call statistics.void onNotifyPresenceReceived(Core lc, Friend lf)
lf
- Updated LinphoneFriend .void onEcCalibrationAudioInit(Core lc)
lc
- The core.void onMessageReceived(Core lc, ChatRoom room, ChatMessage message)
room
- LinphoneChatRoom involved in this conversation. Can be be created
by the framework in case the from is not present in any chat room.void onEcCalibrationResult(Core lc, EcCalibratorStatus status, int delayMs)
delayMs
- The measured delay if available.void onSubscribeReceived(Core lc, Event lev, java.lang.String subscribeEvent, Content body)
void onInfoReceived(Core lc, Call call, InfoMessage msg)
msg
- the info message.void onChatRoomRead(Core lc, ChatRoom room)
room
- LinphoneChatRoom that has been marked as read.void onRegistrationStateChanged(Core lc, ProxyConfig cfg, RegistrationState cstate, java.lang.String message)
void onFriendListRemoved(Core lc, FriendList list)
list
- LinphoneFriendList objectvoid onReferReceived(Core lc, java.lang.String referTo)
void onQrcodeFound(Core lc, java.lang.String result)
result
- The result of the decoded qrcodevoid onConfiguringStatus(Core lc, ConfiguringState status, java.lang.String message)
message
- informational message.void onCallCreated(Core lc, Call call)
call
- The newly created LinphoneCall objectvoid onPublishStateChanged(Core lc, Event lev, PublishState state)
void onCallEncryptionChanged(Core lc, Call call, boolean on, java.lang.String authenticationToken)
authenticationToken
- an authentication_token, currently set for ZRTP kind
of encryption only.void onIsComposingReceived(Core lc, ChatRoom room)
room
- LinphoneChatRoom involved in the conversation.void onMessageReceivedUnableDecrypt(Core lc, ChatRoom room, ChatMessage message)
room
- LinphoneChatRoom involved in this conversation. Can be be created
by the framework in case the from is not present in any chat room.void onLogCollectionUploadProgressIndication(Core lc, int offset, int total)
lc
- LinphoneCore objectvoid onChatRoomSubjectChanged(Core lc, ChatRoom cr)
cr
- The LinphoneChatRoom object for which the subject has changedvoid onVersionUpdateCheckResultReceived(Core lc, VersionUpdateCheckResult result, java.lang.String version, java.lang.String url)
url
- The url where to download the new version if the result is
#LinphoneVersionUpdateCheckNewVersionAvailablevoid onEcCalibrationAudioUninit(Core lc)
lc
- The core.void onGlobalStateChanged(Core lc, GlobalState gstate, java.lang.String message)
message
- informational message.void onLogCollectionUploadStateChanged(Core lc, Core.LogCollectionUploadState state, java.lang.String info)
info
- Additional information: error message in case of error state, URL
of uploaded file in case of success.void onDtmfReceived(Core lc, Call call, int dtmf)
dtmf
- the ascii code of the dtmfvoid onChatRoomEphemeralMessageDeleted(Core lc, ChatRoom cr)
cr
- The LinphoneChatRoom object for which a message has expired.void onMessageSent(Core lc, ChatRoom room, ChatMessage message)
room
- LinphoneChatRoom involved in this conversation. Can be be created
by the framework in case the from is not present in any chat room.