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 Details

    • onMessageReceived

      void onMessageReceived(String callSid, CallMessage callMesssage)
      Notifies that an incoming call message has been received. This feature is currently in Beta.
      Parameters:
      callSid - The unique identifier for the Call or the CallInvite.
      callMesssage - The CallMessage received.
    • 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 unique identifier returned from the Call.sendMessage(CallMessage)
    • onMessageFailure

      void onMessageFailure(String callSid, String voiceEventSID, VoiceException error)
      Notifies the delegate that a CallMessage was failed to be sent out. 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 unique identifier returned from the Call.sendMessage(CallMessage)
      error - The VoiceException that occurred.