private static extern void PartySampleApp_Initialize( string titleId, string playFabPlayerCustomId, OnPlayerJoinedCallback onPlayerJoinedCallback, OnPlayerChatIndicatorUpdatedCallback onPlayerChatIndicatorUpdatedCallback, OnPlayerTextMessageReceivedCallback onPlayerTextMessageReceivedCallback, OnPlayerVoiceTranscriptionReceivedCallback onPlayerVoiceTranscriptionReceivedCallback, OnPlayerLeftCallback onPlayerLeftCallback);
public PartySamplePage(string titleId, string playFabPlayerCustomId) { InitializeComponent(); this.TitleIdTextBlock.Text = "Party sample: " + titleId; this.logEntries = new ObservableCollection <LogEntry>(); LogEntryList.ItemsSource = this.logEntries; this.playerEntries = new ObservableCollection <PlayerEntry>(); PlayerList.ItemsSource = this.playerEntries; this.onPlayerJoinedDelegate = OnPlayerJoined; this.onPlayerChatIndicatorUpdatedDelegate = OnPlayerChatIndicatorUpdated; this.onPlayerTextMessageReceivedDelegate = OnPlayerTextMessageReceived; this.onPlayerVoiceTranscriptionReceivedDelegate = OnPlayerVoiceTranscriptionReceived; this.onPlayerLeftDelegate = OnPlayerLeft; PartySampleApp_Initialize( titleId, playFabPlayerCustomId, this.onPlayerJoinedDelegate, this.onPlayerChatIndicatorUpdatedDelegate, this.onPlayerTextMessageReceivedDelegate, this.onPlayerVoiceTranscriptionReceivedDelegate, this.onPlayerLeftDelegate); this.logPollingTaskCancellationToken = new CancellationTokenSource().Token; this.logPollingTask = Task.Factory.StartNew( PollForNewLogs, this.logPollingTaskCancellationToken, TaskCreationOptions.LongRunning, TaskScheduler.Default); this.logCallbackDelegate = LogNewMessage; }