TCHContentDataCard Class Reference

Inherits from NSObject
Conforms to TCHContentDataRaw
Declared in TCHContentTemplate.h

Overview

The action which includes a menu of up to 10 options, which offers a simple way for users to make a selection. Represents the twilio/card content type.

  type

The type of the content template variant, which is [TCHContentDataTypeCard].

@property (nonatomic, readonly) enum TCHContentDataType type

Discussion

The type of the content template variant, which is [TCHContentDataTypeCard].

Declared In

TCHContentTemplate.h

  rawData

The full data of the content data as a stringified JSON.

@property (nonatomic, readonly, copy) NSString *rawData

Discussion

The full data of the content data as a stringified JSON.

Can be used for new content types and fields which are not yet supported in the current version of Conversations SDK.

Declared In

TCHContentTemplate.h

  title

The title of the card.

@property (nonatomic, readonly, copy) NSString *title

Discussion

The title of the card.

Declared In

TCHContentTemplate.h

  subtitle

The subtitle of the card.

@property (nonatomic, readonly, copy) NSString *subtitle

Discussion

The subtitle of the card.

Declared In

TCHContentTemplate.h

  media

URLs of media to send with the message.

@property (nonatomic, readonly, copy) NSArray<NSString*> *media

Discussion

URLs of media to send with the message.

Declared In

TCHContentTemplate.h

  actions

The array of actions that represent buttons on which recipients can tap on to act on the message.

@property (nonatomic, readonly, copy) NSArray<NSObject<TCHContentDataActionProtocol> *> *actions

Discussion

The array of actions that represent buttons on which recipients can tap on to act on the message.

Declared In

TCHContentTemplate.h