Callback: Session.SessionListener
Inherited from the Session class, used for session callback functions in the Arcade Session API.
void public class SessionListener
{
public override void OnSuccess(string pchAppID)
public override void OnStartSuccess(string pchAppID, string pchGuid)
public override void OnStopSuccess(string pchAppID, string pchGuid)
public override void OnFailure(int nCode, string pchMessage)
}
OnSuccess()
void OnSuccess(string pchAppID)
Name |
Type |
Description |
pchAppID |
string |
VIVEPORT ID |
Callback when
IsReady()
is successful. Retrieves the VIVEPORT ID of the title.
OnStartSuccess()
void OnStartSuccess(string pchAppID, string pchGuid)
Name |
Type |
Description |
pchAppID |
string |
VIVEPORT ID |
pchGuid |
string |
Unique session GUID |
Callback on successful completion of
Start()
. Retrieves the
app ID
as
string pchAppID
and a unique session GUID
string pchGuid
.
OnStopSuccess()
void OnStopSuccess(string pchAppID, string pchGuid)
Name |
Type |
Description |
pchAppID |
string |
VIVEPORT ID |
pchGuid |
string |
Unique session GUID |
Callback on successful completetion of
Stop()
. Retrieves the
app ID
as
string pchAppID
and a unique session GUID
string pchGuid
which should match that of
listener.OnStartSuccess()
.
OnFailure()
void OnFailure(int nCode, string pchMessage)
Name |
Type |
Description |
nCode |
int |
Error code |
pchMessage |
string |
Error message |
Callback on failure of any Arcade Session API function. Retrieves error code and error message.