onDocumentWasRotated

abstract void onDocumentWasRotated(@NonNull() Document document, int oldRotation, int newRotation)

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.

Deprecated

When a GiniVision and a GiniVisionNetworkService instance is available rotation is handled internally. The document is analyzed by using the configured GiniVisionNetworkService implementation. The extractions will be returned in the Analysis Screen in onExtractionsAvailable.

Parameters

document

contains the modified image

oldRotation

the previous rotation in degrees

newRotation

the new rotation in degrees