TVOCallMessageBuilder Class Reference

Inherits from NSObject
Declared in TVOCallMessage.h

Overview

TVOCallMessageBuilder is a builder class for TVOCallMessage.

  messageType

The type for the message.

@property (nonatomic, assign) TVOCallMessageType messageType

Declared In

TVOCallMessage.h

  contentType

The MIME type for the message.

@property (nonatomic, copy, nullable) NSString *contentType

Discussion

Currently the only supported type is “application/json”, which is also the default value.

Declared In

TVOCallMessage.h

  content

The content body of the message.

@property (nonatomic, copy, nonnull) NSString *content

Discussion

The format of the message body must match the content type. The size limit of the message content is 10 KB. [TVOCall sendMessage:] with message content that exceeds the size limitation will result in the [TVOCallMessageDelegate call:didFailToSendMessage:error] callback.

A call message with content that does not match the content type will not result in the [TVOCallMessageDelegate call:didFailToSendMessage:error] callback but will generate an error in your Twilio developer console. For example, a call message with content type “application/json” but with the content “Hello World”, which is not a valid JSON object, will result in such error.

Declared In

TVOCallMessage.h

– init

You should not initialize TVOCallMessageBuilder directly, use a TVOCallMessageBuilderBlock instead.

- (null_unspecified instancetype)init

Declared In

TVOCallMessage.h