TVOCallMessageDelegate Protocol Reference

Conforms to NSObject
Declared in TVOCallMessageDelegate.h

Overview

TVOCallMessageDelegate provides callbacks when call message is received or when the result of outbound message request is available.

– messageReceivedForCallSid:message:

Notifies the delegate that a message with the event type is received during a TVOCall.

- (void)messageReceivedForCallSid:(nonnull NSString *)callSid message:(nonnull TVOCallMessage *)callMessage

Parameters

callSid

The unique identifier of the TVOCall or TVOCallInvite that received the message.

callMessage

The TVOCallMessage.

Discussion

This feature is currently in Beta.

Declared In

TVOCallMessageDelegate.h

– messageSentForCallSid:voiceEventSid:

Notifies the delegate that a message was sent.

- (void)messageSentForCallSid:(nonnull NSString *)callSid voiceEventSid:(nonnull NSString *)voiceEventSid

Parameters

callSid

The unique identifier of the TVOCall or TVOCallInvite that successfully sent the message.

voiceEventSid

The same unique identifier to be associated with the unique identifier returned from the [TVOCall sendMessage:] or [TVOCallInvite sendMessage:] method.

Discussion

This feature is currently in Beta.

Declared In

TVOCallMessageDelegate.h

– messageFailedForCallSid:voiceEventSid:error:

Notifies the delegate that a message was failed to be sent out.

- (void)messageFailedForCallSid:(nonnull NSString *)callSid voiceEventSid:(nonnull NSString *)voiceEventSid error:(nonnull NSError *)error

Parameters

callSid

The unique identifier of the TVOCall or TVOCallInvite that failed to send the message.

voiceEventSid

The same unique identifier to be associated with the unique identifier returned from the [TVOCall sendMessage:] or [TVOCallInvite sendMessage:] method.

error

The <NSError> that occurred.

Discussion

This feature is currently in Beta.

Declared In

TVOCallMessageDelegate.h

– call:didReceiveMessage:

Notifies the delegate that a message with the event type is received during a TVOCall.

- (void)call:(nonnull TVOCall *)call didReceiveMessage:(nonnull TVOCallMessage *)callMessage

Parameters

call

The TVOCall that received the message.

callMessage

The TVOCallMessage.

Discussion

This feature is currently in Beta.

Declared In

TVOCallMessageDelegate.h

– call:didSendMessage:

Notifies the delegate that a message was sent.

- (void)call:(nonnull TVOCall *)call didSendMessage:(nonnull NSString *)voiceEventSid

Parameters

call

The TVOCall that successfully sent the message.

voiceEventSid

The same unique identifier to be associated with the unique identifier returned from the [TVOCall sendMessage:] method.

Discussion

This feature is currently in Beta.

Declared In

TVOCallMessageDelegate.h

– call:didFailToSendMessage:error:

Notifies the delegate that a message was failed to be sent out.

- (void)call:(nonnull TVOCall *)call didFailToSendMessage:(nonnull NSString *)voiceEventSid error:(nonnull NSError *)error

Parameters

call

The TVOCall that failed to send the message.

voiceEventSid

The same unique identifier to be associated with the unique identifier returned from the [TVOCall sendMessage:] method.

error

The <NSError> that occurred.

Discussion

This feature is currently in Beta.

Declared In

TVOCallMessageDelegate.h

– callInvite:didReceiveMessage:

Notifies the delegate that a message with the event type is received by the TVOCallInvite.

- (void)callInvite:(nonnull TVOCallInvite *)callInvite didReceiveMessage:(nonnull TVOCallMessage *)callMessage

Parameters

callInvite

The TVOCallInvite that received the message.

callMessage

The TVOCallMessage.

Discussion

This feature is currently in Beta.

Declared In

TVOCallMessageDelegate.h

– callInvite:didSendMessage:

Notifies the delegate that a message was sent.

- (void)callInvite:(nonnull TVOCallInvite *)callInvite didSendMessage:(nonnull NSString *)voiceEventSid

Parameters

callInvite

The TVOCallInvite that successfully sent the message.

voiceEventSid

The same unique identifier to be associated with the unique identifier returned from the [TVOCallInvite sendMessage:callMessageDelegate:] method.

Discussion

This feature is currently in Beta.

Declared In

TVOCallMessageDelegate.h

– callInvite:didFailToSendMessage:error:

Notifies the delegate that a message was failed to be sent out.

- (void)callInvite:(nonnull TVOCallInvite *)callInvite didFailToSendMessage:(nonnull NSString *)voiceEventSid error:(nonnull NSError *)error

Parameters

callInvite

The TVOCallInvite that failed to send the message.

voiceEventSid

The same unique identifier to be associated with the unique identifier returned from the [TVOCallInvite sendMessage:callMessageDelegate:] method.

error

The <NSError> that occurred.

Discussion

This feature is currently in Beta.

Declared In

TVOCallMessageDelegate.h