Class ScannerController


  • public class ScannerController
    extends java.lang.Object
    Controls QR Code scanning using Google's MLKit Library (https://developers.google.com/ml-kit/vision/barcode-scanning/android)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void scanCode​(androidx.camera.core.ImageProxy imgProxy)
      Scans for any QR Codes in the picture
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScannerController

        public ScannerController​(BaseFragment fragment,
                                 Player activePlayer)
        Creates a ScannerController
        Parameters:
        fragment - The fragment that the ScannerController is attached to
        activePlayer - The current logged in player
    • Method Detail

      • scanCode

        public void scanCode​(androidx.camera.core.ImageProxy imgProxy)
        Scans for any QR Codes in the picture
        Parameters:
        imgProxy - The image to scan QR codes in, most likely from the camera
        See Also:
        CameraController