Function usage
IsReady()
void IsReady(SessionListener listener);
Name |
Type |
Description |
listener |
Callback function |
Initializes the Arcade Session API. Call this before calling any other functions in this API or starting a session. When completed, the callback
listener.OnSuccess()
will retrieve the
app ID
as
string pchAppID
.
If initialization fails,
listener.OnFailure()
will retrieve
error code
int nCode
and error message
string pchMessage
.
Start()
void Start(SessionListener listener)
Name |
Type |
Description |
listener |
Callback function |
Starts an arcade session. When completed,
listener.OnStartSuccess()
will retrieve the
app ID
as
string pchAppID
and a unique session GUID
string pchGuid
.
If
Start()
fails,
listener.OnFailure()
will retrieve
error code
int nCode
and error message
string pchMessage
.
Stop()
void Stop(SessionListener listener)
Name |
Type |
Description |
listener |
Callback function |
Stops an arcade session. When completed,
listener.OnStopSuccess()
will retrieve the
app ID
as
string pchAppID
and a unique session GUID
string pchGuid
which should match that of
listener.OnStartSuccess()
.
If
Stop()
fails,
listener.OnFailure()
will retrieve
error code
int nCode
and error message
string pchMessage
.