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
In order to receive images, implement ImagePickerCallback in your Fragment/Activity or as object:
@Override
public void onImagesSelected(List files) {
// Do whatever you want with list of files
for (int i = 0; i < files.size(); i++) {
// As example you can process each file inside for-cycle
}
}
Create an instance of ImagePicker using ImagePicker.Builder(), which require 2 mandatory params: current Activity and ImagePickerCallback:
ImagePicker imagePicker = new ImagePicker.Builder(activity, callback)
.useGallery(true)
.useCamera(true)
.useMultiSelection(true)
.build();