Navigation
API > API/Plugins > API/Plugins/OnlineSubsystem > API/Plugins/OnlineSubsystem/Interfaces
References
| Module | OnlineSubsystem |
| Header | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineIdentityInterface.h |
| Include | #include "Interfaces/OnlineIdentityInterface.h" |
Syntax
class IOnlineIdentity
Remarks
Interface for registration/authentication of user identities
Variables
| Type | Name | Description | |
|---|---|---|---|
| FOnControllerPairingChanged | OnControllerPairingChangedDelegates | Delegate called when a controller-user pairing changes | |
| FOnLoginChanged | OnLoginChangedDelegates | Delegate called when a player logs in/out | |
| FOnLoginComplete[MAX_LOCAL_PLAYERS] | OnLoginCompleteDelegates | Called when user account login has completed after calling Login() or AutoLogin() | |
| FOnLoginFlowLogout | OnLoginFlowLogoutDelegates | Delegate called when the online subsystem requires the login flow to logout and cleanup | |
| FOnLoginStatusChanged[MAX_LOCAL_PLAYERS] | OnLoginStatusChangedDelegates | Delegate called when a player's login status changes but doesn't change identity | |
| FOnLogoutComplete[MAX_LOCAL_PLAYERS] | OnLogoutCompleteDelegates | Delegate used in notifying the that manual logout completed |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FDelegateHandle | AddOnControllerPairingChangedDelegate_Handle
(
const FOnControllerPairingChangedDelegate& Delegate |
||
| FDelegateHandle | AddOnLoginChangedDelegate_Handle
(
const FOnLoginChangedDelegate& Delegate |
||
| FDelegateHandle | AddOnLoginCompleteDelegate_Handle
(
int32 LocalUserNum, |
||
| FDelegateHandle | AddOnLoginFlowLogoutDelegate_Handle
(
const FOnLoginFlowLogoutDelegate& Delegate |
||
| FDelegateHandle | AddOnLoginStatusChangedDelegate_Handle
(
int32 LocalUserNum, |
||
| FDelegateHandle | AddOnLogoutCompleteDelegate_Handle
(
int32 LocalUserNum, |
||
| bool | Logs the player into the online service using parameters passed on the command line. | ||
| void | ClearCachedAuthToken
(
const FUniqueNetId& UserId |
Clear an auth token associated with the user, if one was cached. | |
| void | |||
| void | ClearOnControllerPairingChangedDelegates
(
void* Object |
||
| void | ClearOnLoginChangedDelegate_Handle
(
FDelegateHandle& Handle |
||
| void | ClearOnLoginChangedDelegates
(
void* Object |
||
| void | ClearOnLoginCompleteDelegate_Handle
(
int32 LocalUserNum, |
||
| void | ClearOnLoginCompleteDelegates
(
int32 LocalUserNum, |
||
| void | ClearOnLoginFlowLogoutDelegate_Handle
(
FDelegateHandle& Handle |
||
| void | ClearOnLoginFlowLogoutDelegates
(
void* Object |
||
| void | ClearOnLoginStatusChangedDelegate_Handle
(
int32 LocalUserNum, |
||
| void | ClearOnLoginStatusChangedDelegates
(
int32 LocalUserNum, |
||
| void | ClearOnLogoutCompleteDelegate_Handle
(
int32 LocalUserNum, |
||
| void | ClearOnLogoutCompleteDelegates
(
int32 LocalUserNum, |
||
| FUniqueNetIdPtr | CreateUniquePlayerId
(
uint8* Bytes, |
Create a unique id from binary data (used during replication) | |
| FUniqueNetIdPtr | CreateUniquePlayerId
(
const FString& Str |
Create a unique id from string | |
| TArray< TSharedPtr< FUserOnlineAccount > > | Obtain list of all known/registered user accounts | ||
| FString | GetAuthToken
(
int32 LocalUserNum |
Gets a user's platform specific authentication token to verify their identity | |
| FString | GetAuthType () |
Get the auth type associated with accounts for this platform | |
| void | GetLinkedAccountAuthToken
(
int32 LocalUserNum, |
Gets a user's platform specific authentication ticket used to sign into linked account(s) | |
| void | GetLinkedAccountAuthToken
(
int32 LocalUserNum, |
||
| int32 | GetLocalUserNumFromPlatformUserId
(
FPlatformUserId PlatformUserId |
Converts from a PlatformUserId used by application code to a local user num used by the online system | |
| ELoginStatus::Type | GetLoginStatus
(
const FUniqueNetId& UserId |
Fetches the login status for a given player | |
| ELoginStatus::Type | GetLoginStatus
(
int32 LocalUserNum |
Fetches the login status for a given player | |
| FPlatformUserId | GetPlatformUserIdFromLocalUserNum
(
int32 LocalUserNum |
Converts from a local user num used by the online system to a PlatformUserId used by application code | |
| FPlatformUserId | GetPlatformUserIdFromUniqueNetId
(
const FUniqueNetId& UniqueNetId |
Converts from an online unique id to a PlatformUserId used by application code | |
| FString | GetPlayerNickname
(
const FUniqueNetId& UserId |
Reads the player's nick name from the online service | |
| FString | GetPlayerNickname
(
int32 LocalUserNum |
Reads the player's nick name from the online service | |
| FUniqueNetIdPtr | GetSponsorUniquePlayerId
(
int32 LocalUserNum |
Gets the platform specific unique id for the sponsor of the specified player | |
| FUniqueNetIdPtr | GetUniquePlayerId
(
int32 LocalUserNum |
Gets the platform specific unique id for the specified player | |
| TSharedPtr< FUserOnlineAccount > | GetUserAccount
(
const FUniqueNetId& UserId |
Obtain online account info for a user that has been registered | |
| void | GetUserPrivilege
(
const FUniqueNetId& LocalUserId, |
Gets the status of a user's privilege. | |
| bool | Login
(
int32 LocalUserNum, |
Login/Authenticate with user credentials. | |
| bool | Signs the player out of the online service Will call OnLogoutComplete() delegate when async task completes | ||
| void | RevokeAuthToken
(
const FUniqueNetId& LocalUserId, |
Revoke the user's registered auth token. | |
| void | TriggerOnControllerPairingChangedDelegates
(
int Param1, |
||
| void | TriggerOnLoginChangedDelegates
(
int32 Param1 |
||
| void | TriggerOnLoginCompleteDelegates
(
int32 LocalUserNum, |
||
| void | TriggerOnLoginFlowLogoutDelegates
(
const TArray< FString >& Param1 |
||
| void | TriggerOnLoginStatusChangedDelegates
(
int32 LocalUserNum, |
||
| void | TriggerOnLogoutCompleteDelegates
(
int32 LocalUserNum, |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EPrivilegeResults |
Typedefs
| Name | Description |
|---|---|
| FOnGetLinkedAccountAuthTokenCompleteDelegate | Delegate executed when the user's auth ticket has arrived |
| FOnGetUserPrivilegeCompleteDelegate | Delegate executed when we get a user privilege result. |