Data Capture View Listener#

Defined in package com.scandit.datacapture.core.ui

interface DataCaptureViewListener

Added in version 6.0.0

Listener for observing the data capture view. This listener is typically used when you want to react to orientation and size changes, e.g. to adjust view finder and scan area parameters.

To receive callback when screen rotates or keyboard opens you may have to add android:configChanges flag on your activity declaration in AndroidManifest.xml file.

onSizeChanged(width, height, screenOrientation)#
void onSizeChanged(int width,
        int height,
        int screenOrientation)

Added in version 6.0.0

Invoked when the data capture view changes size or orientation.

Orientation parameter might have value of Surface.ROTATION_0, Surface.ROTATION_90, Surface.ROTATION_180 or Surface.ROTATION_270.