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

#import <SpectatorToPlayerRequest.h>

Inherits BaseRequest.

Instance Methods

(id) - initWithTargetRoom:
 

Class Methods

(id) + requestWithTargetRoom:
 
(id) + request
 

Protected Attributes

id< Room > _room
 

Properties

id< Room > room
 

Detailed Description

Attempt to turn the current User from Spectator into a Player (in a Game Room)

This could fail if no Player slots are available in the Room at the time of the request

Method Documentation

◆ requestWithTargetRoom:

+ (id) requestWithTargetRoom: (id <Room>)  targetRoom
Parameters
targetRoomthe Room where the change has to be performed, a null value indicates the last joined Room (default)
See also
[ISFSEvents onSpectatorToPlayer:]
[ISFSEvents onSpectatorToPlayerError:]
PlayerToSpectatorRequest