protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); var connectionParameters = JsonSerializer.Deserialize <ConnectionParameters>(ConnectionParametersJson); await ChatViewModel.OnPageAppearingAsync(connectionParameters, ReRender); }
protected override async void OnAppearing() { base.OnAppearing(); await XamarinSupport.SetCameraAndMicPermissionsAsync(); Xamarin.Essentials.DeviceDisplay.KeepScreenOn = true; await _chatViewModel.OnPageAppearingAsync(_connectionParameters); }