You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to pass custom request code as show in your git document and on launcher I can capture as per request code shown below
ActivityResultLauncher<Intent> launcher =
registerForActivityResult(newActivityResultContracts.StartActivityForResult(), (ActivityResultresult) -> {
if (result.getResultCode() == RESULT_OK) {
//here I want to check request code so that I can use my logic
} elseif (result.getResultCode() == ImagePicker.RESULT_ERROR) {
// Use ImagePicker.Companion.getError(result.getData()) to show an error
}
});
The text was updated successfully, but these errors were encountered:
I'm gonna edit the Readme. With the new ActivityResultContracts API, it is not possible to pass the request code.
You need different launchers for your desire; For example, when one picking up and cropping has been finished, open the next one, etc.
Hi
what I am trying to do is in same page got 3 different images to capture,in latest version I am unable to pass request code in
I want to pass custom request code as show in your git document and on launcher I can capture as per request code shown below
The text was updated successfully, but these errors were encountered: