FOnlineIdentityTwitch

Twitch service implementation of the online identity interface

Windows
MacOS
Linux

Inheritance Hierarchy

IOnlineIdentity

TSharedFromThis

FOnlineIdentityTwitch

References

Module

OnlineSubsystemTwitch

Header

/Engine/Plugins/Online/OnlineSubsystemTwitch/Source/Public/OnlineIdentityTwitch.h

Include

#include "OnlineIdentityTwitch.h"

Syntax

class FOnlineIdentityTwitch :
    public IOnlineIdentity,
    public TSharedFromThis< FOnlineIdentityTwitch, ESPMode::ThreadSafe >

Remarks

Twitch service implementation of the online identity interface

Constructors

Name Description

Protected function

FOnlineIdentityTwitch()

Default constructor unavailable

Protected function

FOnlineIdentityTwitch

(
    FOnlineSubsystemTwitch* InSubs...
)

Constructor

Destructors

Name Description

Protected function Virtual

~FOnlineIdentityTwitch()

Destructor

Functions

Name Description

Protected function Const

const FStrin...

 

GetCurrentLoginNonce()

Protected function Const

const FTwitc...

 

GetLoginURLDetails()

Protected function Const

TSharedPtr< ...

 

GetUserAccountTwitch

(
    const FUniqueNetId& UserId
)

Protected function

void

 

LoginWithAccessToken

(
    int32 LocalUserNum,
    const FString& AccessToken,
    const FOnLoginCompleteDelegate& In...
)

Login with an existing access token

Public function

void

 

SetStatePrefix

(
    const FString& StatePrefix
)

Set the state prefix

Overridden from IOnlineIdentity

Name Description

Public function Virtual

bool

 

AutoLogin

(
    int32 LocalUserNum
)

Logs the player into the online service using parameters passed on the command line.

Public function Virtual

FUniqueNetId...

 

CreateUniquePlayerId

(
    uint8* Bytes,
    int32 Size
)

Create a unique id from binary data (used during replication)

Public function Virtual

FUniqueNetId...

 

CreateUniquePlayerId

(
    const FString& Str
)

Create a unique id from string

Public function Virtual Const

TArray< TSha...

 

GetAllUserAccounts()

Obtain list of all known/registered user accounts

Public function Virtual Const

FString

 

GetAuthToken

(
    int32 LocalUserNum
)

Gets a user's platform specific authentication token to verify their identity

Public function Virtual Const

FString

 

GetAuthType()

Get the auth type associated with accounts for this platform

Public function Virtual Const

ELoginStatus...

 

GetLoginStatus

(
    const FUniqueNetId& UserId
)

Fetches the login status for a given player

Public function Virtual Const

ELoginStatus...

 

GetLoginStatus

(
    int32 LocalUserNum
)

Fetches the login status for a given player

Public function Virtual Const

FPlatformUse...

 

GetPlatformUserIdFromUniqueNetId

(
    const FUniqueNetId& UniqueNetId
)

Temporary hack to get a corresponding FUniqueNetId from a PlatformUserId

Public function Virtual Const

FString

 

GetPlayerNickname

(
    const FUniqueNetId& UserId
)

Reads the player's nick name from the online service

Public function Virtual Const

FString

 

GetPlayerNickname

(
    int32 LocalUserNum
)

Reads the player's nick name from the online service

Public function Virtual Const

FUniqueNetId...

 

GetUniquePlayerId

(
    int32 LocalUserNum
)

Gets the platform specific unique id for the specified player

Public function Virtual Const

TSharedPtr< ...

 

GetUserAccount

(
    const FUniqueNetId& UserId
)

Obtain online account info for a user that has been registered

Public function Virtual

void

 

GetUserPrivilege

(
    const FUniqueNetId& LocalUserId,
    EUserPrivileges::Type Privilege,
    const FOnGetUserPrivilegeCompleteDe...
)

Gets the status of a user's privilege.

Public function Virtual

bool

 

Login

(
    int32 LocalUserNum,
    const FOnlineAccountCredentials& A...
)

Login/Authenticate with user credentials.

Public function Virtual

bool

 

Logout

(
    int32 LocalUserNum
)

Signs the player out of the online service Will call OnLogoutComplete() delegate when async task completes

Public function Virtual

void

 

RevokeAuthToken

(
    const FUniqueNetId& LocalUserId,
    const FOnRevokeAuthTokenCompleteDel...
)

Revoke the user's registered auth token.

Typedefs

Name

Description

FOnValidateAuthTokenComplete

Delegate fired after a Twitch token has been validated

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss