isDocumentAlignedWithImage

fun isDocumentAlignedWithImage(currentDeviceOrientation: Int, documentOrientation: Int, frameOrientation: Int): Boolean

Determines if the document's long side aligns with the device's long side.

Parameters

currentDeviceOrientation

The device's current basic orientation.

documentOrientation

The direction of the log side of the document, either Configuration.ORIENTATION_LANDSCAPE or Configuration.ORIENTATION_PORTRAIT.

frameOrientation

The rotation degrees of the current Frame.