ISystemPicker

Presents the system photo and document pickers.
public interface ISystemPicker

Methods

PickFileAsync

Presents the document browser and returns the chosen file, or null if canceled.

Task<PickedAsset?> PickFileAsync(
  params string[] extensions)
ParameterSummary
string extensionsFile extensions to allow (for example pdf), or none for any file.

Returns

PickImagesAsync

Presents the photo library and returns the chosen image, or null if canceled.

Task<PickedAsset[]?> PickImagesAsync(
  int limit = 1)
ParameterSummary
(optional) int limitThe maximum number of images that can be selected.

Returns