-api-id | -api-type |
---|---|
M:Windows.Media.AppRecording.AppRecordingManager.SaveScreenshotToFilesAsync(Windows.Storage.StorageFolder,System.String,Windows.Media.AppRecording.AppRecordingSaveScreenshotOption,Windows.Foundation.Collections.IIterable{System.String}) |
winrt method |
Asynchronously saves an image file containing the current contents of the calling app.
The path to which the recorded media file is written.
The prefix of the filename used for saved images. The system appends the appropriate extension to the filename for each format specified in the requestedFormats parameter.
A value that specifies options for saving the screenshot. To help the system perform the proper colorspace conversions, apps should specify HdrContentVisible if the content to be saved includes HDR content. Otherwise, apps should specify None.
A list of strings specifying the formats in which screenshot images should be saved. Get a list of the supported values for this parameter with the SupportedScreenshotMediaEncodingSubtypes property.
An asynchronous operation that returns an AppRecordingSaveScreenshotResult upon completion that can be used to get information about the results of the save operation.
Images files saved using AppRecordingManager are not ingested into first-party experiences like GameDVR or the XBox app.