Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 1.35 KB

README.md

File metadata and controls

48 lines (39 loc) · 1.35 KB

Rx-Get-image

Release Build Status Coverage Status


download

use jitpack

how to use

    RxGetImage.newBuilder().needCorp(true).isSingle(true).corpWidth(2).corpHeight(1).build()
    .subscribe(new Subscriber<File>() {
        @Override
        public void onCompleted() {
             // todo
        }

        @Override
        public void onError(Throwable e) {
            // todo
        }

        @Override
        public void onNext(File file) {
             // todo
        }
    });

default config:

            needCorp = false;
            needCompress = true;
            isSingle = true;
            isTakePhoto = false;

            maxArraySize = Integer.MAX_VALUE;
            maxSizeInKib = 700;
            maxWidthInPx = 1920;
            maxHeightInPx = 1920;
            corpHeight = 1;
            corpWidth = 1;

read javadoc in jitpack