Class CameraLocationPhotoController


  • public class CameraLocationPhotoController
    extends CameraController
    Enables the ImageCapture camera use case to let players take location photos.
    See Also:
    CameraController
    • Constructor Detail

      • CameraLocationPhotoController

        public CameraLocationPhotoController​(LocationPhotoFragment fragment,
                                             androidx.camera.view.PreviewView previewView,
                                             LocationPhotoController controller)
        Creates a CameraLocationPhotoController that can take location photos
        Parameters:
        fragment - The fragment that uses the camera
        previewView - The UI element in fragment to show camera preview on
        controller - location photo controller
    • Method Detail

      • setupCamera

        protected void setupCamera​(com.google.common.util.concurrent.ListenableFuture<androidx.camera.lifecycle.ProcessCameraProvider> cameraProviderFuture)
                            throws java.util.concurrent.ExecutionException,
                                   java.lang.InterruptedException
        Enables the camera to take photos using the ImageCapture use case
        Specified by:
        setupCamera in class CameraController
        Parameters:
        cameraProviderFuture - The camera's provider object
        Throws:
        java.util.concurrent.ExecutionException - if setup fails
        java.lang.InterruptedException - if setup fails