Skip to content

Qixingchen/Rx-Get-image

Repository files navigation

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