Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to combine two different plugin work together?

$
0
0

I wish to combine lamp plugin and media plugin together, so is it possible?

Below is my code but not working:

CrossMedia.Current.Initialize();
    if (!CrossMedia.Current.IsTakePhotoSupported && !CrossMedia.Current.IsTakeVideoSupported)
    {
        DisplayAlert("Message", "Photo Capture and Pick Not supported", "ok");
        return;
    }
    else
    {

        CrossLamp.Current.TurnOn();

        var file = CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions
        {
            //DefaultCamera = Plugin.Media.Abstractions.CameraDevice.Front,
            CompressionQuality = 92,
            SaveToAlbum = true,
            Directory = "Image",
            Name = DateTime.Now + "_test.jpg"
        });

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>