Game Jolt Unity API  v2.5.8
Static Public Member Functions | List of all members
GameJolt.API.Sessions Class Reference

Sessions API methods More...

Static Public Member Functions

static void Open (Action< bool > callback=null)
 Open a session (on the GameJolt). More...
 
static void Ping (SessionStatus status=SessionStatus.Active, Action< bool > callback=null)
 Ping (i.e. keep alive) a session (on the GameJolt). More...
 
static void Close (Action< bool > callback=null)
 Close a session (on the GameJolt). More...
 
static void Check (Action< bool?> callback)
 Checks to see if there is an open session for the user. Can be used to see if a particular user account is active in the game. More...
 

Detailed Description

Sessions API methods

Member Function Documentation

◆ Check()

static void GameJolt.API.Sessions.Check ( Action< bool?>  callback)
inlinestatic

Checks to see if there is an open session for the user. Can be used to see if a particular user account is active in the game.

Parameters
callbackA callback function accepting a single parameter, a nullable boolean indicating whether there is an open session or not. If this argument is null, then there was an error.

◆ Close()

static void GameJolt.API.Sessions.Close ( Action< bool >  callback = null)
inlinestatic

Close a session (on the GameJolt).

Parameters
callbackA callback function accepting a single parameter, a boolean indicating success.

◆ Open()

static void GameJolt.API.Sessions.Open ( Action< bool >  callback = null)
inlinestatic

Open a session (on the GameJolt).

Parameters
callbackA callback function accepting a single parameter, a boolean indicating success.

◆ Ping()

static void GameJolt.API.Sessions.Ping ( SessionStatus  status = SessionStatus.Active,
Action< bool >  callback = null 
)
inlinestatic

Ping (i.e. keep alive) a session (on the GameJolt).

Parameters
statusThe SessionStatus to set the session to.
callbackA callback function accepting a single parameter, a boolean indicating success.

The documentation for this class was generated from the following file: