Screenshot.CaptureAsync Method

Definition

Captures a screenshot of the current screen of the running application.

public:
 static System::Threading::Tasks::Task<Microsoft::Maui::Media::IScreenshotResult ^> ^ CaptureAsync();
public static System.Threading.Tasks.Task<Microsoft.Maui.Media.IScreenshotResult> CaptureAsync ();
static member CaptureAsync : unit -> System.Threading.Tasks.Task<Microsoft.Maui.Media.IScreenshotResult>
Public Shared Function CaptureAsync () As Task(Of IScreenshotResult)

Returns

An instance of IScreenshotResult with information about the captured screenshot.

Exceptions

Applies to