IScreenshot.CaptureAsync Method

Definition

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

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

Returns

An instance of IScreenshotResult with information about the captured screenshot.

Applies to