public abstract class

CameraConfigurator

extends Object
java.lang.Object
   ↳ com.sap.cloud.mobile.fiori.camera.CameraConfigurator
Known Direct Subclasses

Class Overview

CameraConfigurator helps users to select and configure the underlying Camera for FioriCamera.

Summary

Public Constructors
CameraConfigurator()
Public Methods
abstract boolean shouldOpenCamera(CameraCharacteristics characteristics)
Select which camera should FioriCamera class use to present the preview.
Protected Methods
void configureCaptureRequest(CaptureRequest.Builder builder)
Callback to help configure the CaptureRequest.Builder for enabling ot disabling diverse properties such as flash mode, auto exposure mode etc.
List<Surface> getTargetSurfaces()
Return the list of Surface to be used to receive the frames from Camera.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CameraConfigurator ()

Public Methods

public abstract boolean shouldOpenCamera (CameraCharacteristics characteristics)

Select which camera should FioriCamera class use to present the preview. FioriCamera class will call this callback with CameraCharacteristics of the available cameras, in the order received from CameraManager. Once the callback selects a Camera by returning true,FioriCamera will try tto open the selected Camera.

Protected Methods

protected void configureCaptureRequest (CaptureRequest.Builder builder)

Callback to help configure the CaptureRequest.Builder for enabling ot disabling diverse properties such as flash mode, auto exposure mode etc.

Parameters
builder CaptureRequest.Builder

protected List<Surface> getTargetSurfaces ()

Return the list of Surface to be used to receive the frames from Camera. For example if you wish to run an optical character recognition you could provide ImageReader as surface and FioriCamera will configure the CameraCaptureSession to send the frames to all surfaces along with preview.