TWMMessages Class Reference
Inherits from | NSObject |
---|---|
Declared in | TWMMessages.h |
– createMessageWithBody:
Creates a place-holder message which can be populated and sent with sendMessage:completion:
- (TWMMessage *)createMessageWithBody:(NSString *)body
Parameters
body |
Body for new message. |
---|
Return Value
Place-holder TWMMessage instance
Discussion
Creates a place-holder message which can be populated and sent with sendMessage:completion:
Declared In
TWMMessages.h
– sendMessage:completion:
Sends a message to the channel.
- (void)sendMessage:(TWMMessage *)message completion:(TWMCompletion)completion
Parameters
message |
The message to send. |
---|---|
completion |
Completion block that will specify the result of the operation. |
Discussion
Sends a message to the channel.
Declared In
TWMMessages.h
– removeMessage:completion:
Removes the specified message from the channel.
- (void)removeMessage:(TWMMessage *)message completion:(TWMCompletion)completion
Parameters
message |
The message to remove. |
---|---|
completion |
Completion block that will specify the result of the operation. |
Discussion
Removes the specified message from the channel.
Declared In
TWMMessages.h
– allObjects
Returns messages received so far from backend, messages are loaded asynchronously so this may not fully represent all history available for channel.
- (NSArray<TWMMessage*> *)allObjects
Return Value
Messages received by IP Messaging Client so far for the given channel.
Discussion
Returns messages received so far from backend, messages are loaded asynchronously so this may not fully represent all history available for channel.
Declared In
TWMMessages.h