SfBChatService Class Reference

Inherits from SfBConversationService : NSObject
Declared in SfBChatService.h

Overview

This interface controls the local chat messages that the SDK provides into the conversation. Received chat messages are available via the HistoryService. The results of some operations on this interface may be visible in changes to the ParticipantChat belonging to the conversation’s selfParticipant.

– sendMessage:error:

Sends a message asynchronously into the conversation.

- (BOOL)sendMessage:(NSString *)text error:(NSError **)error

Parameters

text

The message to be sent.

Discussion

Sends a message asynchronously into the conversation.

The sent message is available in the activityItems collection of the historyService. Observe its status property to determine if the message delivery to the server succeeds or fails.

Declared In

SfBChatService.h

  canSendMessage

@property (readonly) BOOL canSendMessage

– sendIsTyping:

Sends an indication that the local user is typing into the conversation..

- (BOOL)sendIsTyping:(NSError **)error

Discussion

Sends an indication that the local user is typing into the conversation..

Declared In

SfBChatService.h

– init

- (instancetype)init