-
- All Implemented Interfaces:
-
com.twilio.voice.Call.CallMessageListener
public class CallMessageListenerProxy implements Call.CallMessageListener
-
-
Constructor Summary
Constructors Constructor Description CallMessageListenerProxy(EventPublisher publisher, Call.CallMessageListener callMessageListener)
-
Method Summary
Modifier and Type Method Description voidonMessageReceived(String callSid, CallMessage callMessage)Notifies that an incoming call message has been received. voidonMessageSent(String callSid, String voiceEventSID)Notifies that a CallMessage was sent. voidonMessageFailure(String callSid, String voiceEventSID, VoiceException error)Notifies the delegate that a CallMessage was failed to be sent out. -
-
Constructor Detail
-
CallMessageListenerProxy
CallMessageListenerProxy(EventPublisher publisher, Call.CallMessageListener callMessageListener)
-
-
Method Detail
-
onMessageReceived
void onMessageReceived(String callSid, CallMessage callMessage)
Notifies that an incoming call message has been received. This feature is currently inBeta.
- Parameters:
callSid- The unique identifier for the Call or the CallInvite.
-
onMessageSent
void onMessageSent(String callSid, String voiceEventSID)
Notifies that a CallMessage was sent. This feature is currently in Beta.
- Parameters:
callSid- The unique identifier for the Call or the CallInvite.voiceEventSID- The same unique identifier to be associated with the uniqueidentifier returned from the sendMessage
-
onMessageFailure
void onMessageFailure(String callSid, String voiceEventSID, VoiceException error)
Notifies the delegate that a CallMessage was failed to be sent out. This featureis currently in Beta.
- Parameters:
callSid- The unique identifier for the Call or the CallInvite.voiceEventSID- The same unique identifier to be associated with the uniqueidentifier returned from the sendMessageerror- The VoiceException that occurred.
-
-
-
-