The 3 Main Anyline Plugin Components

The Anyline SDK is comprised of 3 main components - the ScanPlugin, the ScanViewPlugin, and the ScanView.

This article will provide details and descriptions of each of these components.

image-20240325-140451.png

 


The ScanPlugin

  • The ScanPlugin handles the image processing and the scanning functionality itself.

  • Everything regarding scanning will be handled by the ScanPlugin.

 


The ScanViewPlugin

  • The ScanViewPlugin handles the UI elements (such as the cutout, the flash button, etc.) and the VisualFeedback, which will be presented to the user.

  • Everything regarding UI configuration will be handled by the ScanViewPlugin.

  • A ScanViewPlugin has to be instantiated with a ScanPlugin and optionally with a UI Config called the ScanViewPluginConfig.

 


The ScanView

  • The ScanView will handle the camera, the flash management and manage the previously created ScanViewPlugin and ScanPlugin.

  • The ScanView will be instantiated with a frame and the ScanViewPlugin. The frame will define the size of the ScanPlugin, the ScanViewPlugin and the ScanView.

 


Further information

 Need help?

To read more about the other components that comprise the Anyline SDK (the ViewPluginBase, the FlashView, the CameraView, the CutoutView, and the ViewPluginComposite), please find more information on our “How Anyline Works” Page available on our Technical Documentation.