DetachEpicGamesIdentity
Detach the Epic Games identity from this profile.
| Service | Operation |
|---|---|
| identity | DETACH |
note
Epic Games support was added to the C# (Unity) client library first. Check the release notes of your client library to confirm it is available on your platform.
Method Parameters
| Parameter | Description |
|---|---|
| epicAccountId | The Epic Account ID of the user (LocalUserId.ToString() from the EOS SDK Auth Interface). |
| continueAnon | Proceed even if the profile will revert to anonymous? |
Usage
http://localhost:3000
- C#
- C++
- Obj-C
- Java
- JavaScript
- Dart
- Roblox
- GDScript
- Lua
- Cloud Code
- Raw
string epicAccountId = "0123456789abcdef0123456789abcdef";
_bc.IdentityService.DetachEpicGamesIdentity(
epicAccountId,
true,
SuccessCallback, FailureCallback);
const char* epicAccountId = "0123456789abcdef0123456789abcdef";
bool continueAnon = true;
_bc->getIdentityService()->detachEpicGamesIdentity(
epicAccountId, continueAnon, this);
NSString * epicAccountId = @"0123456789abcdef0123456789abcdef";
BOOL continueAnon = true;
BCCompletionBlock successBlock; // define callback
BCErrorCompletionBlock failureBlock; // define callback
[[_bc identityService]
detachEpicGamesIdentity:epicAccountId
continueAnon:continueAnon
completionBlock:successBlock
errorCompletionBlock:failureBlock
cbObject:nil];
String epicAccountId = "0123456789abcdef0123456789abcdef";
boolean continueAnon = true;
this; // implements IServerCallback
_bc.getIdentityService().detachEpicGamesIdentity(epicAccountId, continueAnon, this);
public void serverCallback(ServiceName serviceName, ServiceOperation serviceOperation, JSONObject jsonData)
{
System.out.print(String.format("Success | %s", jsonData.toString()));
}
public void serverError(ServiceName serviceName, ServiceOperation serviceOperation, int statusCode, int reasonCode, String jsonError)
{
System.out.print(String.format("Failed | %d %d %s", statusCode, reasonCode, jsonError.toString()));
}
var epicAccountId = "0123456789abcdef0123456789abcdef";
var continueAnon = true;
_bc.identity.detachEpicGamesIdentity(epicAccountId, continueAnon, result =>
{
var status = result.status;
console.log(status + " : " + JSON.stringify(result, null, 2));
});
var epicAccountId = "0123456789abcdef0123456789abcdef";
var continueAnon = true;
ServerResponse result = await _bc.identityService.detachEpicGamesIdentity(epicAccountId:epicAccountId, continueAnon:continueAnon);
if (result.statusCode == 200) {
print("Success");
} else {
print("Failed ${result.error['status_message'] ?? result.error}");
}
local epicAccountId = "0123456789abcdef0123456789abcdef"
local continueAnon = true
local callback = function(success, response)
if success then
print("Success")
else
print("Failed | " .. tostring(response.status_message))
end
end
_bc.identity:detachEpicGamesIdentity(epicAccountId, continueAnon, callback)
var epic_account_id = "0123456789abcdef0123456789abcdef"
var continue_anon = true
var result = await _bc.identity_service.detach_epic_games_identity(epic_account_id, continue_anon)
if result.status == 200:
print("Success")
else:
print("Failed: %s" % result.status_message)
local epicAccountId = "0123456789abcdef0123456789abcdef"
local continueAnon = true
local callback = function(success, response)
if success then
print("Success")
else
print("Failed | " .. tostring(response.status_message))
end
end
_bc.identity:detachEpicGamesIdentity(epicAccountId, continueAnon, callback)
// N/A
{
"service": "identity",
"operation": "DETACH",
"data": {
"externalId": "0123456789abcdef0123456789abcdef",
"authenticationType": "EpicGames",
"continueAnon": true
}
}
JSON Response
{
"data": null,
"status": 200
}
Common Error Code
Status Codes
| Code | Name | Description |
|---|---|---|
| 40210 | DOWNGRADING_TO_ANONYMOUS_ERROR | Occurs when detaching the last non-anonymous identity from an account with continueAnon set to false. |