IMediaPicker.PickPhotoAsync(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 media browser to select a photo.
public System.Threading.Tasks.Task<Microsoft.Maui.Storage.FileResult?> PickPhotoAsync (Microsoft.Maui.Media.MediaPickerOptions? options = default);
abstract member PickPhotoAsync : Microsoft.Maui.Media.MediaPickerOptions -> System.Threading.Tasks.Task<Microsoft.Maui.Storage.FileResult>
Public Function PickPhotoAsync (Optional options As MediaPickerOptions = Nothing) As Task(Of FileResult)
Parameters
- options
- MediaPickerOptions
Pick options to use.
Returns
A FileResult object containing details of the picked photo. When the operation was cancelled by the user, this will return null
.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.