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

#import <PlayerToSpectatorRequest.h>

Inherits BaseRequest.

Instance Methods

(id) - initWithTargetRoom:
 

Class Methods

(id) + requestWithTargetRoom:
 
(id) + request
 

Properties

id< Room > room
 

Detailed Description

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

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

Method Documentation

◆ requestWithTargetRoom:

+ (id) requestWithTargetRoom: (id <Room>)  room
Parameters
roomthe Room where the change has to be performed, a null value indicates the last joined Room (default)
See also
[ISFSEvents onPlayerToSpectator:]
[ISFSEvents onPlayerToSpectatorError:]
SpectatorToPlayerRequest