Observer

Observer of events in the libSoftphone.

All the callbacks are run on the main (GUI) thread.

To make it easier, you may want to instantiate Listeners and implement only callbacks that your classes are interested in.

Inheritors

Functions

Link copied to clipboard
Request for a ringtone for a call event.
Link copied to clipboard
Request for selecting the starting audio route for a call event.
Link copied to clipboard
abstract fun handleThrowable(@NonNull throwable: Throwable)
Handle a throwable.
Link copied to clipboard
Invoked when account properties changed
Link copied to clipboard
Available audio routes changed.
Link copied to clipboard
Real audio route changed.
Link copied to clipboard
abstract fun onBalance(@Nullable accountId: String, @NonNull balance: Balance.Record)
Balance information received or changed.
Link copied to clipboard
A hold state of a call changed.
Link copied to clipboard
Call rate information received or updated.
Link copied to clipboard
Call repository changed.
Link copied to clipboard
State of a call changed.
Link copied to clipboard
Call-through result arrived.
Link copied to clipboard
Link copied to clipboard
Invoked for incoming composing notification, or when the composing state goes idle
Link copied to clipboard
One or more contacts have been changed, added or removed.
Link copied to clipboard
Contact source contacts index has changed.
Link copied to clipboard
Contacts source login state changed
Link copied to clipboard
Contact source state has changed.
Link copied to clipboard
abstract fun onDialogEvent(@Nullable accountId: String)
Dialog event triggered.
Link copied to clipboard
abstract fun onDndActiveChanged(@Nullable accountId: String, active: Boolean)
DND activation changed.
Link copied to clipboard
abstract fun onDnsSrvQueryDone(queryId: Long, @NonNull records: Array<DnsSrvRecord>)
DNS SRV query completed.
Link copied to clipboard
Events changed.
Link copied to clipboard
Media status changed in a call.
Link copied to clipboard
The call got into missed state.
Link copied to clipboard
Network change detected.
Link copied to clipboard
abstract fun onNetworkConditions(@NonNull networkConditions: NetworkConditions)
Network conditions changed.
Link copied to clipboard
abstract fun onNewEvent(@NonNull event: Event)
New event arrived.
Link copied to clipboard
abstract fun onPermissionRequested(@NonNull permission: String, callback: PermissionCallback)
Invoked when the SDK requests some permission.
Link copied to clipboard
abstract fun onPushTestArrived(@Nullable accountId: String)
A push test has arrived.
Link copied to clipboard
A push test was scheduled.
Link copied to clipboard
abstract fun onRegistrationErrorMessage(@Nullable accountId: String, @NonNull message: String)
Registration failed.
Link copied to clipboard
Registration state changed.
Link copied to clipboard
Security status changed on a call.
Link copied to clipboard
Invoked when a prefKey is changed
Link copied to clipboard
Invoked when simulated microphone which was configured to be played only once stopped.
Link copied to clipboard
SIP message was sent or received.
Link copied to clipboard
One or more contacts changed their smart status.
Link copied to clipboard
abstract fun onSubscriptionNotify(@Nullable accountId: String, @NonNull subscriptionId: String, @NonNull contentType: String, @NonNull body: String)
Subscription received NOTIFY message
Link copied to clipboard
abstract fun onSubscriptionStateChanged(@Nullable accountId: String, @NonNull subscriptionId: String, @NonNull state: SubscriptionState)
Subscription state changed.
Link copied to clipboard
abstract fun onTelecomError(@NonNull errorStack: List<TelecomError>)
Invoked when an error related to telecom operations occurs.
Link copied to clipboard
Transfer offered call.
Link copied to clipboard
abstract fun onTransferResult(@NonNull call: CallEvent, result: Boolean)
Transfer result call.
Link copied to clipboard
abstract fun onVideoFlowChanged(incoming: Boolean, outgoing: Boolean)
Video flow changed.
Link copied to clipboard
abstract fun onVoicemail(@Nullable accountId: String, @Nullable voicemail: Voicemail.Record)
New voicemail arrived.
Link copied to clipboard
Override priorities of network interfaces.