maven{url 'https://repo.repsy.io/mvn/kredibel/sdk'}
2. Add this dependency to gradle script on app module. π [Latest release]
dependencies {
implementation 'io.kredibel:picker:0.0.1' // Please check βοΈ latest version
}
Initialize Picker object on your Activity or Fragment
Picker picker = new Picker(this);
var picker = Picker(this)
picker.pickGallery(new PickerListener() {
@Override
public void onPicked(Uri uri, File file, Bitmap bitmap) {
//do something
}
});
picker.pickGallery { uri, file, bitmap ->
//do something
}
picker.pickCamera(new PickerListener() {
@Override
public void onPicked(Uri uri, File file, Bitmap bitmap) {
//do something
}
});
picker.pickCamera { uri, file, bitmap ->
//do something
}
picker.pickCamera((uri, file, bitmap) -> {
//do something;
});