Table of Contents

Interface IPlatformServices

Namespace
TaleWorlds.PlatformService
Assembly
TaleWorlds.PlatformService.dll
public interface IPlatformServices

Properties

BlockedUsers

IReadOnlyCollection<PlayerId> BlockedUsers { get; }

Property Value

IReadOnlyCollection<PlayerId>

IsPermanentMuteAvailable

bool IsPermanentMuteAvailable { get; }

Property Value

bool

PlayerId

PlayerId PlayerId { get; }

Property Value

PlayerId

ProviderName

string ProviderName { get; }

Property Value

string

UserDisplayName

string UserDisplayName { get; }

Property Value

string

UserId

string UserId { get; }

Property Value

string

UserLoggedIn

bool UserLoggedIn { get; }

Property Value

bool

Methods

CheckPermissionWithUser(Permission, PlayerId, PermissionResult)

void CheckPermissionWithUser(Permission permission, PlayerId targetPlayerId, PermissionResult callback)

Parameters

permission Permission
targetPlayerId PlayerId
callback PermissionResult

CheckPrivilege(Privilege, bool, PrivilegeResult)

void CheckPrivilege(Privilege privilege, bool displayResolveUI, PrivilegeResult callback)

Parameters

privilege Privilege
displayResolveUI bool
callback PrivilegeResult

CreateLobbyClientLoginProvider()

Task<ILoginAccessProvider> CreateLobbyClientLoginProvider()

Returns

Task<ILoginAccessProvider>

GetAchievementService()

IAchievementService GetAchievementService()

Returns

IAchievementService

GetActivityService()

IActivityService GetActivityService()

Returns

IActivityService

GetFriendListServices()

IFriendListService[] GetFriendListServices()

Returns

IFriendListService[]

GetInitParams()

PlatformInitParams GetInitParams()

Returns

PlatformInitParams

GetPlatformId(PlayerId, Action<object>)

void GetPlatformId(PlayerId playerId, Action<object> callback)

Parameters

playerId PlayerId
callback Action<object>

GetUserAvatar(PlayerId)

Task<AvatarData> GetUserAvatar(PlayerId providedId)

Parameters

providedId PlayerId

Returns

Task<AvatarData>

Initialize(IFriendListService[])

bool Initialize(IFriendListService[] additionalFriendListServices)

Parameters

additionalFriendListServices IFriendListService[]

Returns

bool

IsPlayerProfileCardAvailable(PlayerId)

bool IsPlayerProfileCardAvailable(PlayerId providedId)

Parameters

providedId PlayerId

Returns

bool

LoginUser()

void LoginUser()

OnFocusGained()

void OnFocusGained()

RegisterPermissionChangeEvent(PlayerId, Permission, PermissionChanged)

bool RegisterPermissionChangeEvent(PlayerId targetPlayerId, Permission permission, PermissionChanged callback)

Parameters

targetPlayerId PlayerId
permission Permission
callback PermissionChanged

Returns

bool

ShowGamepadTextInput(string, string, uint, bool)

void ShowGamepadTextInput(string descriptionText, string existingText, uint maxChars, bool isObfuscated)

Parameters

descriptionText string
existingText string
maxChars uint
isObfuscated bool

ShowOverlayForWebPage(string)

Task<bool> ShowOverlayForWebPage(string url)

Parameters

url string

Returns

Task<bool>

ShowPlayerProfileCard(PlayerId)

void ShowPlayerProfileCard(PlayerId providedId)

Parameters

providedId PlayerId

ShowRestrictedInformation()

void ShowRestrictedInformation()

Terminate()

void Terminate()

Tick(float)

void Tick(float dt)

Parameters

dt float

UnregisterPermissionChangeEvent(PlayerId, Permission, PermissionChanged)

bool UnregisterPermissionChangeEvent(PlayerId targetPlayerId, Permission permission, PermissionChanged callback)

Parameters

targetPlayerId PlayerId
permission Permission
callback PermissionChanged

Returns

bool

VerifyString(string)

Task<bool> VerifyString(string content)

Parameters

content string

Returns

Task<bool>

Events

OnAvatarUpdated

event Action<AvatarData> OnAvatarUpdated

Event Type

Action<AvatarData>

OnBlockedUserListUpdated

event Action OnBlockedUserListUpdated

Event Type

Action

OnNameUpdated

event Action<string> OnNameUpdated

Event Type

Action<string>

OnSignInStateUpdated

event Action<bool, TextObject> OnSignInStateUpdated

Event Type

Action<bool, TextObject>

OnTextEnteredFromPlatform

event Action<string> OnTextEnteredFromPlatform

Event Type

Action<string>

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).