How to use BSImagePicker in Xamarin Forms?

Liêm_NguyễnLiêm_Nguyễn USMember ✭✭✭✭

Hi everybody, I need use BSImagePicker in X.Forms via DependenceService
This is link of BSImagePicker but this is java for Android Studio
How to convert and use it in Xamarin.Forms or Xamarin.Android
Thank you!

Tagged:

Best Answers

Answers

  • ColeXColeX Member, Xamarin Team Xamurai

    Have you tried this package for BSImagePicker ?

  • Liêm_NguyễnLiêm_Nguyễn USMember ✭✭✭✭

    @ColeX said:
    Have you tried this package for BSImagePicker ?

    Yes, I'm trying that package. But just a new guy so I'm can not understand it.
    Could you please create a simple sample implement this plugin via DependencyServices.
    Thank you!

  • Liêm_NguyễnLiêm_Nguyễn USMember ✭✭✭✭
    edited July 11
    > @ColeX
    Wow. A lot of things to do. How you know that, may I need learn to develop Android app before learn Xamarin form ???
  • ColeXColeX Member, Xamarin Team Xamurai
    edited July 11

    Actually i'm working on iOS ... but i know java syntax is very similar to C# , isn't it ?

  • Liêm_NguyễnLiêm_Nguyễn USMember ✭✭✭✭
    edited July 11

    @ColeX When override

    public void OnMultiImageSelected(IList<Android.Net.Uri> uriList, string tag) { }
    How to return a List of Image in DependencyService
    Interface
    public interface IMediaService
    {
    Task<List> PickPhotosAsync();
    }

  • Liêm_NguyễnLiêm_Nguyễn USMember ✭✭✭✭

    Why we must implement in MainActivity. Can I override BSImagePicker method in dependency class!

  • ColeXColeX Member, Xamarin Team Xamurai

    @Liêm_Nguyễn said:
    Why we must implement in MainActivity. Can I override BSImagePicker method in dependency class!

    It tells the parent activity must implements the listener.

  • Liêm_NguyễnLiêm_Nguyễn USMember ✭✭✭✭

    @ColeX said:

    @Liêm_Nguyễn said:
    Why we must implement in MainActivity. Can I override BSImagePicker method in dependency class!

    It tells the parent activity must implements the listener.

    Thank! You're awsome!, Now I know why we must implement in MainActivity.

    Final thing, When I use IOnMultiImageSelectedListener in MainActivity.
    How to return a List of Image picked to use in PCL/Net Standard!

    Thank

Sign In or Register to comment.