SKTMessageItem
Objective-C
@interface SKTMessageItem : NSObject
Swift
class SKTMessageItem : NSObject
A class representing a message item.
-
@abstract The title of the item
Declaration
Objective-C
@property (copy, nullable) NSString *title;
Swift
var title: String? { get set }
-
@abstract Array of
SKTMessageAction
buttonsSee
SKTMessageActionDeclaration
Objective-C
@property (nullable) NSArray *actions;
Swift
var actions: [Any]? { get set }
-
@abstract The text description, or subtitle
Declaration
Objective-C
@property (copy, nullable) NSString *itemDescription;
Swift
var itemDescription: String? { get set }
-
@abstract The image URL to be shown in the item
Declaration
Objective-C
@property (copy, nullable) NSString *mediaUrl;
Swift
var mediaUrl: String? { get set }
-
@abstract The mediaType of the
mediaUrl
Declaration
Objective-C
@property (copy, nullable) NSString *mediaType;
Swift
var mediaType: String? { get set }
-
@abstract Metadata associated with the message item.
@discussion A flat dictionary of metadata set through the REST API. May be nil.
Declaration
Objective-C
@property (nullable) NSDictionary *metadata;
Swift
var metadata: [AnyHashable : Any]? { get set }