SFS2X Objective-C API
1.7.13
iOS / macOS / tvOS
|
#import <JoinRoomRequest.h>
Inherits BaseRequest.
Class Methods | |
(id) | + requestWithId:pass:roomIdToLeave:asSpect: |
(id) | + requestWithId: |
+ (id) requestWithId: | (id) | numericIdOrName | |
pass: | (NSString *) | pass | |
roomIdToLeave: | (NSNumber *) | roomIdToLeave | |
asSpect: | (BOOL) | asSpect | |
numericIdOrName | you can use the numeric ID of the Room or its name (you need to pass numeric id in a NSNumber object) |
pass | needed only if the Room is password protected |
roomIdToLeave | the id of a previously joined Room that you want to leave once joined in the new Room (optional). The default behavior is to leave the previous Room. You can pass a negative ID to avoid leaving any Room |
asSpect | if true it indicates that you want to join the room as spectator (optional, for game Rooms only) |