onDocumentWasRotated

Called when the user rotated the image.

In case you started the document analysis in onShouldAnalyzeDocument you should cancel it here as the original image is not valid anymore.

Parameters

document

contains the modified image

newRotation

the new rotation in degrees

oldRotation

the previous rotation in degrees

void onDocumentWasRotated(Document document, int oldRotation, int newRotation)