TCHContentDataListPicker Class Reference

Inherits from NSObject
Conforms to TCHContentDataRaw
Declared in TCHContentTemplate.h

Overview

The template to provide a way to make a simple reaction

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/list-picker content type.

  type

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

@property (nonatomic, readonly) enum TCHContentDataType type

Discussion

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

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

  body

The text of the message you want to send. This is rendered as the body of the message.

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

Discussion

The text of the message you want to send. This is rendered as the body of the message.

Declared In

TCHContentTemplate.h

  button

The title of the primary button.

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

Discussion

The title of the primary button.

Declared In

TCHContentTemplate.h

  items

The array of items displayed in the list. See [TCHContentDataListItem].

@property (nonatomic, readonly, copy) NSArray<TCHContentDataListItem*> *items

Discussion

The array of items displayed in the list. See [TCHContentDataListItem].

Declared In

TCHContentTemplate.h