Class LocationPhotoController

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setCameraFields​(java.util.concurrent.ExecutorService cameraExecutor, androidx.camera.core.ImageCapture imageCapture)
      Once the camera use case is set, the LocationPhotoController needs to know the ImageCapture use case and the CameraExecutor
      void takePhoto()
      Takes a picture and adds it to the QRCode
      • Methods inherited from class java.lang.Object

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

      • LocationPhotoController

        public LocationPhotoController​(LocationPhotoFragment fragment,
                                       QRCode qrCode,
                                       Player activePlayer)
        Creates the LocationPhotoController
        Parameters:
        fragment - The LocationPhotoFragment that owns this LocationPhotoController
        qrCode - The QRCode that the user will add the location photo to
        activePlayer - The current logged in player
    • Method Detail

      • setCameraFields

        public void setCameraFields​(java.util.concurrent.ExecutorService cameraExecutor,
                                    androidx.camera.core.ImageCapture imageCapture)
        Once the camera use case is set, the LocationPhotoController needs to know the ImageCapture use case and the CameraExecutor
        Parameters:
        cameraExecutor - What executes the camera service
        imageCapture - The ImageCapture use case that lets us take photos
        See Also:
        CameraLocationPhotoController
      • takePhoto

        public void takePhoto()
        Takes a picture and adds it to the QRCode