Package com.twilio.voice
Interface Call.CallMessageListener
- 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 voiceEventSID, VoiceException error) Notifies the delegate that aCallMessage
was failed to be sent out.void
onMessageReceived
(CallMessage callMesssage) Notifies that an incoming call message has been received.void
onMessageSent
(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:
callMesssage
- TheCallMessage
received.
-
onMessageSent
Notifies that aCallMessage
was sent. This feature is currently in Beta.- Parameters:
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:
voiceEventSID
- The same unique identifier to be associated with the unique identifier returned from theCall.sendMessage(CallMessage)
error
- TheVoiceException
that occurred.
-