Table of Contents

Class PlatformServices

Namespace
TaleWorlds.PlatformService
Assembly
TaleWorlds.PlatformService.dll
public class PlatformServices
Inheritance
PlatformServices
Inherited Members

Constructors

PlatformServices()

public PlatformServices()

Fields

OnConnectionStateChanged

public static Action<bool> OnConnectionStateChanged

Field Value

Action<bool>

OnLobbyClientStateChanged

public static Action<bool, bool> OnLobbyClientStateChanged

Field Value

Action<bool, bool>

OnMultiplayerGameStateChanged

public static Action<bool> OnMultiplayerGameStateChanged

Field Value

Action<bool>

Properties

Instance

public static IPlatformServices Instance { get; }

Property Value

IPlatformServices

InvitationServices

public static IPlatformInvitationServices InvitationServices { get; }

Property Value

IPlatformInvitationServices

IsPlatformRequestedContinueGame

public static bool IsPlatformRequestedContinueGame { get; }

Property Value

bool

IsPlatformRequestedMultiplayer

public static bool IsPlatformRequestedMultiplayer { get; }

Property Value

bool

OnPlatformRequestedMultiplayer

public static Action OnPlatformRequestedMultiplayer { get; set; }

Property Value

Action

OnSessionInvitationAccepted

public static Action<SessionInvitationType> OnSessionInvitationAccepted { get; set; }

Property Value

Action<SessionInvitationType>

ProviderName

public static string ProviderName { get; }

Property Value

string

SessionInvitationType

public static SessionInvitationType SessionInvitationType { get; }

Property Value

SessionInvitationType

UserId

public static string UserId { get; }

Property Value

string

Methods

ConnectionStateChanged(bool)

public static void ConnectionStateChanged(bool isAuthenticated)

Parameters

isAuthenticated bool

FilterString(string, string)

public static Task<string> FilterString(string content, string defaultContent)

Parameters

content string
defaultContent string

Returns

Task<string>

FireOnPlatformRequestedMultiplayer()

public static void FireOnPlatformRequestedMultiplayer()

FireOnSessionInvitationAccepted(SessionInvitationType)

public static void FireOnSessionInvitationAccepted(SessionInvitationType sessionInvitationType)

Parameters

sessionInvitationType SessionInvitationType

Initialize(IFriendListService[])

public static bool Initialize(IFriendListService[] additionalFriendListServices)

Parameters

additionalFriendListServices IFriendListService[]

Returns

bool

LobbyClientStateChanged(bool, bool)

public static void LobbyClientStateChanged(bool atLobby, bool isPartyLeaderOrSolo)

Parameters

atLobby bool
isPartyLeaderOrSolo bool

MultiplayerGameStateChanged(bool)

public static void MultiplayerGameStateChanged(bool isPlaying)

Parameters

isPlaying bool

OnPlatformMultiplayerRequestHandled()

public static void OnPlatformMultiplayerRequestHandled()

OnSessionInvitationHandled()

public static void OnSessionInvitationHandled()

SetIsPlatformRequestedContinueGame(bool)

public static void SetIsPlatformRequestedContinueGame(bool isRequested)

Parameters

isRequested bool

Setup(IPlatformServices)

public static void Setup(IPlatformServices platformServices)

Parameters

platformServices IPlatformServices

Terminate()

public static void Terminate()

TriggerInvitation(List<string>)

[CommandLineFunctionality.CommandLineArgumentFunction("trigger_invitation", "platform_services")]
public static string TriggerInvitation(List<string> strings)

Parameters

strings List<string>

Returns

string

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