public void onCapture(@Nullable Bitmap screenshot, @NonNull BitmapProcessorListener listener) {
    listener.onBitmapReady(screenshot);
  }
public void onCapture ( @ Nullable Bitmap screenshot , @ NonNull BitmapProcessorListener listener ) { listener . onBitmapReady ( screenshot ) ; }
Called when a capture is triggered but not yet saved to a {@link File}, enabling additional
processing before saving. The default implementation immediately calls the {@code listener}
with the original screenshot.

@param screenshot A reference to the screenshot that was captured. Can be null if screenshots
were disabled.
@param listener callback for when additional processing has been completed. This listener must
be called for the screenshot to be saved to disk.