or work directly with a broadcast receiver. The advantage is that it can be used from any part of the app, where you have an access to Context.

CropIwaResultReceiver resultReceiver = new CropIwaResultReceiver();
resultReceiver.setListener(resultListener);
resultReceiver.register(context);
//Don't forget to unregister it when you are done
resultReceiver.unregister(context);

You can subscribe for changes in CropIwaViews configs. Listeners will be notified anytime .apply() is called.

app:ci_aspect_ratio_w="16"
app:ci_aspect_ratio_h="9"
cropView.configureOverlay()
.setAspectRatio(new AspectRatio(16, 9))
.setAspectRatio(AspectRatio.IMG_SRC) //If you want crop area to be equal to the dimensions of an image
.apply();