fixed spacing and added todo
This commit is contained in:
@@ -33,7 +33,11 @@ public partial class MainPage : ContentPage
|
||||
}
|
||||
|
||||
hybridWebView.SetInvokeJavaScriptTarget(this);
|
||||
// hybridWebView.SetInvokeJavaScriptTarget(new RtcBridgeService());
|
||||
//TODO: Need to not have parameters in constructor, protected flags on vars instead of private should make everything accessible
|
||||
|
||||
ServerAPI.setupClient();
|
||||
|
||||
|
||||
_socket = new RelaySocketClient(_username);
|
||||
_rtc = new RtcBridgeService(
|
||||
@@ -296,7 +300,7 @@ public partial class MainPage : ContentPage
|
||||
{
|
||||
SwapView();
|
||||
}
|
||||
|
||||
|
||||
public Task JoinRtcChannel()
|
||||
{
|
||||
return _rtc.JoinRtcChannel();
|
||||
|
||||
@@ -13,12 +13,8 @@ public sealed class RtcBridgeService
|
||||
private readonly Func<string?> _getCurrentChannelId;
|
||||
private readonly Action<string> _sendRawToWebView;
|
||||
|
||||
public RtcBridgeService(
|
||||
string username,
|
||||
RelaySocketClient socket,
|
||||
HybridWebView hybridWebView,
|
||||
Func<string?> getCurrentChannelId,
|
||||
Action<string> sendRawToWebView)
|
||||
public RtcBridgeService(string username, RelaySocketClient socket, HybridWebView hybridWebView,
|
||||
Func<string?> getCurrentChannelId, Action<string> sendRawToWebView)
|
||||
{
|
||||
_username = username;
|
||||
_socket = socket;
|
||||
|
||||
Reference in New Issue
Block a user