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?!

due link have next thing: enter image description here

updated

components

enter image description here enter image description here


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -