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

#import <QuickJoinOrCreateRoomRequest.h>

Inherits BaseRequest.

Class Methods

(id) + requestWithMatchExpression:groupList:roomSettings:roomToLeave:
 
(id) + requestWithMatchExpression:groupList:roomSettings:
 

Detailed Description

The request attempts to find a matching Room to join immediately. If the provided MatchExpression doesn't return any valid match a new Room is created with the settings provided and auto-joined.

Method Documentation

◆ requestWithMatchExpression:groupList:roomSettings:

+ (id) requestWithMatchExpression: (MatchExpression*)  matchExp
groupList: (NSArray*)  groupList
roomSettings: (RoomSettings*)  settings 
Parameters
matchExpa MatchExpression to search for a specifc subset of Rooms
groupListone or more valid group names where to search for Rooms
roomSettingsthe setting for the Room that will be created if no Rooms match the search criteria
See also
[ISFSEvents onRoomJoin:]
[ISFSEvents onRoomJoinError:]
[ISFSEvents onRoomAdd:]
[ISFSEvents onRoomCreationError:]
LeaveRoomRequest

◆ requestWithMatchExpression:groupList:roomSettings:roomToLeave:

+ (id) requestWithMatchExpression: (MatchExpression*)  matchExp
groupList: (NSArray*)  groupList
roomSettings: (RoomSettings*)  settings
roomToLeave: (id<Room>)  roomToLeave 
Parameters
matchExpa MatchExpression to search for a specifc subset of Rooms
groupListone or more valid group names where to search for Rooms
roomSettingsthe setting for the Room that will be created if no Rooms match the search criteria
roomToLeavean optional Room to leave when the new Room is joined
See also
[ISFSEvents onRoomJoin:]
[ISFSEvents onRoomJoinError:]
[ISFSEvents onRoomAdd:]
[ISFSEvents onRoomCreationError:]
LeaveRoomRequest