c# - Method "TakePhotoAsync" of Xam.Plugin.Media return null on platform WinPhone in Xamarin.Forms -
i'm new xamarin , xamarin forms. not understand how come method "takephotoasync" of plugin xam.plugin.media return null lifting system.nullreferenceexception. variable media correctly initialized. part of code:
var file = await media.takephotoasync(new storecameramediaoptions { defaultcamera = cameradevice.rear, directory = "testphoto", name = "photo.jpg", savetoalbum = true });
exactly variable file null, why?!
Comments
Post a Comment