Sessions API methods
More...
|
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...
|
|
◆ 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
-
callback | A 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
-
callback | A 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
-
callback | A 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
-
status | The SessionStatus to set the session to. |
callback | A callback function accepting a single parameter, a boolean indicating success. |
The documentation for this class was generated from the following file:
- D:/Dev/Unity/AssetStore/GameJoltAPI/Assets/Plugins/GameJolt/Scripts/API/Sessions.cs