NXMMessageEvent
Represents a message event that is sent and received on an NXMConversation
.
-
The type of the message.
Declaration
Objective-C
@property (nonatomic, readonly) NXMMessageType messageType;
Swift
var messageType: NXMMessageType { get }
-
The content of the message.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSDictionary *content;
Swift
var content: [AnyHashable : Any] { get }
-
The text of the message in case message_type is text.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *text;
Swift
var text: String? { get }
-
The url of the message in case message_type is image.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *imageUrl;
Swift
var imageUrl: String? { get }
-
The url of the message in case message_type is vcard.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *vcardUrl;
Swift
var vcardUrl: String? { get }
-
The url of the message in case message_type is audio.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *audioUrl;
Swift
var audioUrl: String? { get }
-
The url of the message in case message_type is video.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *videoUrl;
Swift
var videoUrl: String? { get }
-
The url of the message in case message_type is file.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *fileUrl;
Swift
var fileUrl: String? { get }
-
The template content of the message in case message_type is template.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NXMMessageTemplateContent *templateContent;
Swift
var templateContent: NXMMessageTemplateContent? { get }
-
The whatsapp content of the message in case message_type is template.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NXMMessageTemplateWhatsapp *templateWhatsapp;
Swift
var templateWhatsapp: NXMMessageTemplateWhatsapp? { get }
-
The custom content of the message in case message_type is custom.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSDictionary *custom;
Swift
var custom: [AnyHashable : Any]? { get }
-
The location content of the message in case message_type is location.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NXMMessageLocation *location;
Swift
var location: NXMMessageLocation? { get }