SFS2X Objective-C API  1.7.13
iOS / macOS / tvOS
PublicMessageRequest Class Reference

#import <PublicMessageRequest.h>

Inherits GenericMessageRequest.

Instance Methods

(id) - initWithMessage:params:targetRoom:
 

Class Methods

(id) + requestWithMessage:params:targetRoom:
 
(id) + requestWithMessage:
 

Detailed Description

Sends a chat Public Message to other users in the Room

Public Messages are broadcast to all users in the specified Room An optional custom SFSObject can be sent together with the message. The extra parameters can be used to transmit information about the font and color of the message or any other properties that are relevant to the message.

Method Documentation

◆ requestWithMessage:params:targetRoom:

+ (id) requestWithMessage: (NSString *)  message
params: (id <ISFSObject>)  params
targetRoom: (id <Room>)  targetRoom 
Parameters
messagethe chat message
paramscustom extra parameters (optional)
targetRoomthe target room (optional). By default it is used the last joined Room
See also
[ISFSEvents onPublicMessage:]
PrivateMessageRequest