示例#1
0
        protected override async Task OnInitializedAsync()
        {
            await base.OnInitializedAsync();

            var connectionParameters = JsonSerializer.Deserialize <ConnectionParameters>(ConnectionParametersJson);
            await CallViewModel.OnPageAppearingAsync(connectionParameters, ReRender);
        }
示例#2
0
        protected override async void OnAppearing()
        {
            base.OnAppearing();
            await XamarinSupport.SetCameraAndMicPermissionsAsync();

            Xamarin.Essentials.DeviceDisplay.KeepScreenOn = true;
            await _callViewModel.OnPageAppearingAsync(_connectionParameters);
        }