Class CameraConfiguration

java.lang.Object
com.regula.facesdk.configuration.CameraConfiguration
Direct Known Subclasses:
FaceCaptureConfiguration, LivenessConfiguration

public abstract class CameraConfiguration extends Object
  • Constructor Details

    • CameraConfiguration

      protected CameraConfiguration(int cameraId, boolean isCameraSwitchEnabled, Class<? extends FaceUiFragment> uiFragment, boolean isTorchButtonEnabled, boolean isCloseButtonEnabled, boolean hasCopyright, ScreenOrientation[] screenOrientation, boolean vibrateOnSteps)
  • Method Details

    • getCameraId

      public int getCameraId()
      Return one of native camera id
      Returns:
      Default value: -1.
    • isCameraSwitchEnabled

      public boolean isCameraSwitchEnabled()
      Return flag if the camera switch button is available on the FaceCapture UI.
      Returns:
      Default: 'false'.
    • isTorchButtonEnabled

      public boolean isTorchButtonEnabled()
      Return flag if the Torch button is available on the FaceCapture UI.
      Returns:
      Default: 'true'.
    • isCloseButtonEnabled

      public boolean isCloseButtonEnabled()
      Return flag if the close button is available on the FaceCapture UI.
      Returns:
      Default: 'true'.
    • getRegisteredUiFragmentClass

      public Class<? extends FaceUiFragment> getRegisteredUiFragmentClass()
    • hasCopyright

      public boolean hasCopyright()
      Return flag if the logo is visible on the bottom of UI screens
      Returns:
      Default: 'true'
    • getScreenOrientation

      public ScreenOrientation[] getScreenOrientation()
    • isVibrateOnSteps

      public boolean isVibrateOnSteps()
    • getScreenOrientationInt

      protected int[] getScreenOrientationInt()
    • writeToParcel

      public void writeToParcel(Parcel dest, int flags)
    • describeContents

      public int describeContents()