EkoMessageEditor
@interface EkoMessageEditor : NSObject
A editor encapsulates methods for managing messages.
-
The message Id associated with the instance.
Declaration
Objective-C
@property (readonly, strong, nonatomic, nonnull) NSString *messageId;Swift
var messageId: String { get } -
Edits the text message.
Declaration
Objective-C
- (void)editText:(nonnull NSString *)text completion:(EkoRequestCompletion _Nullable)completion;Swift
func editText(_ text: String, completion: EkoRequestCompletion? = nil)Parameters
textThe new text
completionA block executed when the request has completed.
-
Edits the custom message.
Declaration
Objective-C
- (void)editCustomMessage:(nonnull NSDictionary<NSString *, id> *)customMessage completion:(EkoRequestCompletion _Nullable)completion;Swift
func editCustomMessage(_ customMessage: [String : Any], completion: EkoRequestCompletion? = nil)Parameters
textThe new custom message
completionA block executed when the request has completed..
-
Deletes the message.
Declaration
Objective-C
- (void)deleteWithCompletion:(nullable EkoRequestCompletion)completion;Swift
func delete(completion: EkoRequestCompletion? = nil)Parameters
completionA block executed when the request has completed.
-
Unavailable
Block call of
initandnewbecause this object cannot be created directly.Declaration
Objective-C
- (nonnull instancetype)init;
EkoMessageEditor Class Reference