Package com.twilio.voice
Class CallMessageListenerProxy
java.lang.Object
com.twilio.voice.CallMessageListenerProxy
- All Implemented Interfaces:
Call.CallMessageListener
-
Constructor Summary
ConstructorDescriptionCallMessageListenerProxy
(com.twilio.voice.EventPublisher publisher, Call.CallMessageListener callMessageListener) -
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 callMessage) Notifies that an incoming call message has been received.void
onMessageSent
(String callSid, String voiceEventSID) Notifies that aCallMessage
was sent.
-
Constructor Details
-
CallMessageListenerProxy
public CallMessageListenerProxy(@NonNull com.twilio.voice.EventPublisher publisher, @Nullable Call.CallMessageListener callMessageListener)
-
-
Method Details
-
onMessageReceived
Description copied from interface:Call.CallMessageListener
Notifies that an incoming call message has been received. This feature is currently in Beta.- Specified by:
onMessageReceived
in interfaceCall.CallMessageListener
- Parameters:
callSid
- The unique identifier for theCall
or theCallInvite
.callMessage
- TheCallMessage
received.
-
onMessageSent
Description copied from interface:Call.CallMessageListener
Notifies that aCallMessage
was sent. This feature is currently in Beta.- Specified by:
onMessageSent
in interfaceCall.CallMessageListener
- 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
Description copied from interface:Call.CallMessageListener
Notifies the delegate that aCallMessage
was failed to be sent out. This feature is currently in Beta.- Specified by:
onMessageFailure
in interfaceCall.CallMessageListener
- 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.
-