SkillAgentSearch skills...

RxMediaPicker

An easy way to get image or Video from Gallery or Camera with request runtime permission on Android M using RxJava2. Based on RxImagePicker(@MLSDev)

Install / Use

/learn @nfajardo/RxMediaPicker
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

RxMediaPicker

An easy way to get image or Video from Gallery or Camera with request runtime permission on Android M using RxJava2. Based on RxImagePicker(@MLSDev)

Includes Sample

Example Image

RxImagePicker.with(context).requestImage(Sources.GALLERYIMAGE).subscribe(new Consumer<Uri>() {
                    @Override
                    public void accept(@NonNull Uri uri) throws Exception {
                        //Get image by uri using one of image loading libraries. I love Picasso
                    }
                });

Example Video Gallery

RxImagePicker.with(context).requestVideo(Sources.GALLERYVIDEO).subscribe(new Consumer<Uri>() {
                    @Override
                    public void accept(@NonNull Uri uri) throws Exception {
                        //Get video by uri.
                    }
                });

Example Video Camera

RxImagePicker.with(context).requestVideo(Sources.CAMERAVIDEO).subscribe(new Consumer<Uri>() {
                    @Override
                    public void accept(@NonNull Uri uri) throws Exception {
                        //Get video by uri.
                    }
                });

Developer

  • Nelson FB
  • Based on RxImagePicker from @MLSDev

License

RxMediaPicker is released under the MIT license. See LICENSE for details.

Related Skills

View on GitHub
GitHub Stars4
CategoryContent
Updated5y ago
Forks0

Languages

Java

Security Score

55/100

Audited on Jun 9, 2020

No findings