Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (22 sloc) 526 Bytes
using System;
using System.Threading.Tasks;
using Plugin.Media;
using Plugin.Media.Abstractions;
namespace OnlineAlbumMobileApp.Services
{
public static class ImageService
{
public static async Task<MediaFile> PickPhoto()
{
try
{
await CrossMedia.Current.Initialize();
return await CrossMedia.Current.PickPhotoAsync();
}
catch (Exception ex)
{
return null;
}
}
}
}
You can’t perform that action at this time.