GiniCaptureCoordinator

The GiniCaptureCoordinator facilitates the default behavior for the Gini Capture Library.

You can ignore this class when using the Screen API.

If you use the Component API we recommend relying on this class to provide the default behavior of the Gini Capture Library. This can be achieved by calling the required methods at pre-defined points in your code and by implementing the GiniCaptureCoordinator.Listener .

public class GiniCaptureCoordinator

Constructors

GiniCaptureCoordinator
Link copied to clipboard

Types

Listener
Link copied to clipboard

Interface for the GiniCaptureCoordinator to dispatch events.

If you use the GiniCaptureCoordinator you should implement this interface in your Activity to facilitate the default behavior of the Gini Capture SDK.

public interface Listener

Functions

createInstance
Link copied to clipboard

Factory method to create and configure a GiniCaptureCoordinator instance.

static GiniCaptureCoordinator createInstance(Context context)
onCameraStarted
Link copied to clipboard

Call this method when the CameraFragmentCompat has started.

Can be called in your Acitivity's onStart method, which hosts the Camera Fragment.

void onCameraStarted()
setListener
Link copied to clipboard

Listener for handling events from the GiniCaptureCoordinator to provide the default behavior.

setShowOnboardingAtFirstRun
Link copied to clipboard

Enable or disable showing the Onboarding Screen once per installation the first time the Camera Screen is started.

Default value is {@code true} .

shouldShowGiniCaptureNoResultsScreen
Link copied to clipboard
static boolean shouldShowGiniCaptureNoResultsScreen(Document document)