Listener
open classListener
kotlin.Any | |
↳ | android.net.sip.SipAudioCall.Listener |
Listener for events relating to a SIP call, such as when a call is being received ("on ringing") or a call is outgoing ("on calling").
Many of these events are also received by SipSession.Listener
.
Summary
Public constructors | |
---|---|
Listener() |
Public methods | |
---|---|
open Unit |
onCallBusy(call: SipAudioCall!) Called when the peer is busy during session initialization. |
open Unit |
onCallEnded(call: SipAudioCall!) Called when the session is terminated. |
open Unit |
onCallEstablished(call: SipAudioCall!) Called when the session is established. |
open Unit |
onCallHeld(call: SipAudioCall!) Called when the call is on hold. |
open Unit |
onCalling(call: SipAudioCall!) Called when a request is sent out to initiate a new call. |
open Unit |
onChanged(call: SipAudioCall!) Called when an event occurs and the corresponding callback is not overridden. |
open Unit |
onError(call: SipAudioCall!, errorCode: Int, errorMessage: String!) Called when an error occurs. |
open Unit |
onReadyToCall(call: SipAudioCall!) Called when the call object is ready to make another call. |
open Unit |
onRinging(call: SipAudioCall!, caller: SipProfile!) Called when a new call comes in. |
open Unit |
onRingingBack(call: SipAudioCall!) Called when a RINGING response is received for the INVITE request sent. |
Public constructors
Listener
Listener()
Public methods
onCallBusy
open funonCallBusy(call: SipAudioCall!): Unit
Deprecated: Deprecated in Java.
Called when the peer is busy during session initialization. The default implementation calls onChanged
.
Parameters | |
---|---|
call |
SipAudioCall!: the call object that carries out the audio call |
onCallEnded
open funonCallEnded(call: SipAudioCall!): Unit
Deprecated: Deprecated in Java.
Called when the session is terminated. The default implementation calls onChanged
.
Parameters | |
---|---|
call |
SipAudioCall!: the call object that carries out the audio call |
onCallEstablished
open funonCallEstablished(call: SipAudioCall!): Unit
Deprecated: Deprecated in Java.
Called when the session is established. The default implementation calls onChanged
.
Parameters | |
---|---|
call |
SipAudioCall!: the call object that carries out the audio call |
onCallHeld
open funonCallHeld(call: SipAudioCall!): Unit
Deprecated: Deprecated in Java.
Called when the call is on hold. The default implementation calls onChanged
.
Parameters | |
---|---|
call |
SipAudioCall!: the call object that carries out the audio call |
onCalling
open funonCalling(call: SipAudioCall!): Unit
Deprecated: Deprecated in Java.
Called when a request is sent out to initiate a new call. The default implementation calls onChanged
.
Parameters | |
---|---|
call |
SipAudioCall!: the call object that carries out the audio call |
onChanged
open funonChanged(call: SipAudioCall!): Unit
Deprecated: Deprecated in Java.
Called when an event occurs and the corresponding callback is not overridden. The default implementation is no op. Error events are not re-directed to this callback and are handled in onError
.
onError
open funonError(
call: SipAudioCall!,
errorCode: Int,
errorMessage: String!
): Unit
Deprecated: Deprecated in Java.
Called when an error occurs. The default implementation is no op.
Parameters | |
---|---|
call |
SipAudioCall!: the call object that carries out the audio call |
errorCode |
Int: error code of this error |
errorMessage |
String!: error message |
See Also
onReadyToCall
open funonReadyToCall(call: SipAudioCall!): Unit
Deprecated: Deprecated in Java.
Called when the call object is ready to make another call. The default implementation calls onChanged
.
Parameters | |
---|---|
call |
SipAudioCall!: the call object that is ready to make another call |
onRinging
open funonRinging(
call: SipAudioCall!,
caller: SipProfile!
): Unit
Deprecated: Deprecated in Java.
Called when a new call comes in. The default implementation calls onChanged
.
Parameters | |
---|---|
call |
SipAudioCall!: the call object that carries out the audio call |
caller |
SipProfile!: the SIP profile of the caller |
onRingingBack
open funonRingingBack(call: SipAudioCall!): Unit
Deprecated: Deprecated in Java.
Called when a RINGING response is received for the INVITE request sent. The default implementation calls onChanged
.
Parameters | |
---|---|
call |
SipAudioCall!: the call object that carries out the audio call |