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