SmartFoxServer Unity/.NET API
IsSpectator Method
NamespacesSmartFoxClientAPI.DataUserIsSpectator()()()
A boolean flag indicating if the user is a spectator in the current room.
Declaration Syntax
C#Visual BasicVisual C++
public bool IsSpectator()
Public Function IsSpectator As Boolean
public:
bool IsSpectator()
Return Value
true if the user is a spectator.
Remarks
Version:
SmartFoxServer Basic / Pro
Examples
CopyC#
if (user.IsSpectator())
    Trace.WriteLine("The user is a spectator");

Assembly: SmartFoxClient (Module: SmartFoxClient) Version: 1.2.4.0 (1.2.4.0)