Está en la página 1de 1

taller xamarin

use pcl
preferences general para saber que versiones soportara
gorilla player preview xamarin
<activity indicator isvisible isrunning/> //es para poner un circulo que carga
xam.plugin.media se intala del nu get instalar en los 3// usar el readme.txt
infoplist ios
oxford project install

async void button (object sender, system.eventargs e){


var cameraoptions =new plugin.media.abtractions.storecameramediaoptions{
photosize?plugin.media.abstractions.photosize.small,
directory="path",
name?
maxwidthheight
rotateimage=false
};
var file =await crossmedia.current.takephotoasync(
cameraoptions
);
imphoto.source=imagesource.fromfile(file.path);
indicator.isrunning=true

emotionserviceclient emotionclient=new emotionserviceclient(apikey from azure


or oxford)
var photostream =file.getstream();
emotion[] emotionres=await emotionclient.recognizeasync();

if

También podría gustarte