MediaPicker.CapturePhotoAsync(MediaPickerOptions) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Opens the camera to take a photo.
public static System.Threading.Tasks.Task<Microsoft.Maui.Storage.FileResult?> CapturePhotoAsync (Microsoft.Maui.Media.MediaPickerOptions? options = default);
static member CapturePhotoAsync : Microsoft.Maui.Media.MediaPickerOptions -> System.Threading.Tasks.Task<Microsoft.Maui.Storage.FileResult>
Public Shared Function CapturePhotoAsync (Optional options As MediaPickerOptions = Nothing) As Task(Of FileResult)
Parameters
- options
- MediaPickerOptions
Pick options to use.
Returns
A FileResult object containing details of the captured photo. When the operation was cancelled by the user, this will return null
.
Applies to
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.