Skip to content

Commit

Permalink
Update MediaPage.xaml.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno committed Jan 14, 2017
1 parent e2c4a10 commit ac5144d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions samples/MediaSample/MediaSample/MediaPage.xaml.cs
Expand Up @@ -25,7 +25,7 @@ public MediaPage()
var file = await CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions
{
PhotoSize = Plugin.Media.Abstractions.PhotoSize.Medium,
Directory = "Sample",
Name = "test.jpg"
});
Expand All @@ -50,7 +50,10 @@ public MediaPage()
DisplayAlert("Photos Not Supported", ":( Permission not granted to photos.", "OK");
return;
}
var file = await CrossMedia.Current.PickPhotoAsync();
var file = await Plugin.Media.CrossMedia.Current.PickPhotoAsync(new Plugin.Media.Abstractions.PickMediaOptions
{
PhotoSize = Plugin.Media.Abstractions.PhotoSize.Medium
});
if (file == null)
Expand Down

0 comments on commit ac5144d

Please sign in to comment.