Interface IPlatformServices
- Namespace
- TaleWorlds.PlatformService
- Assembly
- TaleWorlds.PlatformService.dll
public interface IPlatformServices
Properties
BlockedUsers
IReadOnlyCollection<PlayerId> BlockedUsers { get; }
Property Value
IsPermanentMuteAvailable
bool IsPermanentMuteAvailable { get; }
Property Value
PlayerId
PlayerId PlayerId { get; }
Property Value
ProviderName
string ProviderName { get; }
Property Value
UserDisplayName
string UserDisplayName { get; }
Property Value
UserId
string UserId { get; }
Property Value
UserLoggedIn
bool UserLoggedIn { get; }
Property Value
Methods
CheckPermissionWithUser(Permission, PlayerId, PermissionResult)
void CheckPermissionWithUser(Permission permission, PlayerId targetPlayerId, PermissionResult callback)
Parameters
permission
PermissiontargetPlayerId
PlayerIdcallback
PermissionResult
CheckPrivilege(Privilege, bool, PrivilegeResult)
void CheckPrivilege(Privilege privilege, bool displayResolveUI, PrivilegeResult callback)
Parameters
privilege
PrivilegedisplayResolveUI
boolcallback
PrivilegeResult
CreateLobbyClientLoginProvider()
Task<ILoginAccessProvider> CreateLobbyClientLoginProvider()
Returns
GetAchievementService()
IAchievementService GetAchievementService()
Returns
GetActivityService()
IActivityService GetActivityService()
Returns
GetFriendListServices()
IFriendListService[] GetFriendListServices()
Returns
GetInitParams()
PlatformInitParams GetInitParams()
Returns
GetPlatformId(PlayerId, Action<object>)
void GetPlatformId(PlayerId playerId, Action<object> callback)
Parameters
GetUserAvatar(PlayerId)
Task<AvatarData> GetUserAvatar(PlayerId providedId)
Parameters
providedId
PlayerId
Returns
Initialize(IFriendListService[])
bool Initialize(IFriendListService[] additionalFriendListServices)
Parameters
additionalFriendListServices
IFriendListService[]
Returns
IsPlayerProfileCardAvailable(PlayerId)
bool IsPlayerProfileCardAvailable(PlayerId providedId)
Parameters
providedId
PlayerId
Returns
LoginUser()
void LoginUser()
OnFocusGained()
void OnFocusGained()
RegisterPermissionChangeEvent(PlayerId, Permission, PermissionChanged)
bool RegisterPermissionChangeEvent(PlayerId targetPlayerId, Permission permission, PermissionChanged callback)
Parameters
targetPlayerId
PlayerIdpermission
Permissioncallback
PermissionChanged
Returns
ShowGamepadTextInput(string, string, uint, bool)
void ShowGamepadTextInput(string descriptionText, string existingText, uint maxChars, bool isObfuscated)
Parameters
ShowOverlayForWebPage(string)
Task<bool> ShowOverlayForWebPage(string url)
Parameters
url
string
Returns
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
PlayerIdpermission
Permissioncallback
PermissionChanged
Returns
VerifyString(string)
Task<bool> VerifyString(string content)
Parameters
content
string
Returns
Events
OnAvatarUpdated
event Action<AvatarData> OnAvatarUpdated
Event Type
OnBlockedUserListUpdated
event Action OnBlockedUserListUpdated
Event Type
OnNameUpdated
event Action<string> OnNameUpdated
Event Type
OnSignInStateUpdated
event Action<bool, TextObject> OnSignInStateUpdated
Event Type
OnTextEnteredFromPlatform
event Action<string> OnTextEnteredFromPlatform
Event Type
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).