VPlayer

class in Volplane namespace

Properties

PlayerId Gets the player identifier.
State Gets the current player state.
IsActive Gets a value indicating whether this player is active.
CurrentView Gets the current view displayed on this players controller.
DeviceId Gets the AirConsole device identifier.
IsUsingBrowser Gets a value indicating whether this player is connected through a mobile browser instead of the AirConsole App.
IsConnected Gets a value indicating whether this player is connected.
IsHero Gets a value indicating whether this player purchased AirConsole Hero.
IsLoggedIn Gets a value indicating whether this player is logged in.
HasSlowConnection Gets a value indicating whether this player has a slow connection.
UID Gets the players unique identifier.
Nickname Gets the players nickname.
ProfilePicture Gets the players profile picture.
UserData Gets the players custom set user data.

Events

OnStateChange Occurs when player state changes (active or inactive).

Public Methods

LoadProfilePicture Loads the profile picture of this player.
SetActive Sets this player active or inactive.
SaveUserData Save custom user data. This method tries to persistently store the data on the AirConsole servers.
ChangeView Changes the controller view of this player.
ResetView Resets the controller view of this player to its initial state.
ChangeViewColor Changes the background color of a controller view.
ChangeViewImage Changes the background image of a controller view.
HideElement Hides and disables an element on the current view.
ShowElement Shows and enables a hidden element on the current view.
ToggleElement Toggles the visibility of an element on the current view.
ChangeElementText Changes the text of an element on the current view.
ChangeElementImage Changes the background image of an element on the current view.
ChangeElementProperties Changes multiple properties from an element on the current view at the same time.
TrackingControllerMotion Enable or disable the tracking of device motion data of the controller from this player.
VibrateController Vibrate the controller of this player for a specified amount of time.