Skip to main content
Version: 5.7.0

SwitchToParentProfile

Switch to a Parent profile.

ServiceOperation
identitySWITCH_TO_PARENT_PROFILE

Method Parameters

ParameterDescription
parentLevelNameThe level of the parent to switch to

Usage

http://localhost:3000
string levelName = "Master";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.IdentityService.SwitchToParentProfile(levelName, successCallback, failureCallback);
JSON Response
{
"data": {
"gameId": "12335",
"profileId": "08ae9b33-3e9d-43d5-835e-7915e0da0fca",
"switchToAppId": "12335"
},
"status": 200
}