Add possibility to set custom request code (not only CROP_IMAGE_ACTIVITY_REQUEST_CODE) for multiple crop selections
I agree, is there a possibility to get the result and set it for different images .. Something like this
case RESULT_AVATAR:
if (resultCode == RESULT_OK) {
Uri selectedImage = imageReturnedIntent.getData();
img_avatar.setImageURI(selectedImage);
}
break;
case RESULT_BANNER:
if (resultCode == RESULT_OK) {
Uri selectedImage = imageReturnedIntent.getData();
img_banner.setImageURI(selectedImage);
}
break;
Ok. I've made research and I was wrong. It is possible.
val intent = CropImage.activity().getIntent(context!!)
startActivityForResult(intent, CUSTOM_REQUEST_CODE)
Most helpful comment
Ok. I've made research and I was wrong. It is possible.