Package com.twilio.voice
Interface Call.CallMessageListener
- All Known Implementing Classes:
CallMessageListenerProxy
- Enclosing class:
- Call
public static interface Call.CallMessageListener
Call.CallMessageListener interface defines a set of callbacks when
CallMessage
is
received or when the result of outbound CallMessage
request is available.-
Method Summary
Modifier and TypeMethodDescriptionvoid
onMessageFailure
(String callSid, String voiceEventSID, VoiceException error) Notifies the delegate that aCallMessage
was failed to be sent out.void
onMessageReceived
(String callSid, CallMessage callMesssage) Notifies that an incoming call message has been received.void
onMessageSent
(String callSid, String voiceEventSID) Notifies that aCallMessage
was sent.
-
Method Details
-
onMessageReceived
Notifies that an incoming call message has been received. This feature is currently in Beta.- Parameters:
callSid
- The unique identifier for theCall
or theCallInvite
.callMesssage
- TheCallMessage
received.
-
onMessageSent
Notifies that aCallMessage
was sent. This feature is currently in Beta.- Parameters:
callSid
- The unique identifier for theCall
or theCallInvite
.voiceEventSID
- The same unique identifier to be associated with the unique identifier returned from theCall.sendMessage(CallMessage)
-
onMessageFailure
Notifies the delegate that aCallMessage
was failed to be sent out. This feature is currently in Beta.- Parameters:
callSid
- The unique identifier for theCall
or theCallInvite
.voiceEventSID
- The same unique identifier to be associated with the unique identifier returned from theCall.sendMessage(CallMessage)
error
- TheVoiceException
that occurred.
-