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

            _showingDesktop = false;
            await OnToggleCamera.InvokeAsync();
        }
示例#2
0
 private async Task ToggleDesktopCamera()
 {
     if (_showingDesktop)
     {
         await OnToggleDesktop.InvokeAsync();
     }
     else
     {
         await OnToggleCamera.InvokeAsync();
     }
 }