Class CameraConfiguration.Builder<C extends CameraConfiguration,B extends CameraConfiguration.Builder<C,B>>

java.lang.Object
com.regula.facesdk.configuration.CameraConfiguration.Builder<C,B>
Direct Known Subclasses:
BaseLivenessConfiguration.Builder, FaceCaptureConfiguration.Builder
Enclosing class:
CameraConfiguration

protected abstract static class CameraConfiguration.Builder<C extends CameraConfiguration,B extends CameraConfiguration.Builder<C,B>> extends Object
  • Field Details

    • cameraId

      protected int cameraId
    • isCameraSwitchEnabled

      protected boolean isCameraSwitchEnabled
    • isTorchButtonEnabled

      protected boolean isTorchButtonEnabled
    • isCloseButtonEnabled

      protected boolean isCloseButtonEnabled
    • uiFragment

      protected Class<? extends FaceUiFragment> uiFragment
    • hasCopyright

      protected boolean hasCopyright
    • screenOrientation

      protected ScreenOrientation[] screenOrientation
    • vibrateOnSteps

      protected boolean vibrateOnSteps
    • cameraRotationAngle

      protected int cameraRotationAngle
    • overrideCameraRotationAngle

      protected boolean overrideCameraRotationAngle
    • preventScreenRecording

      protected boolean preventScreenRecording
  • Constructor Details

    • Builder

      protected Builder()
    • Builder

      protected Builder(Parcel source)
  • Method Details

    • setCloseButtonEnabled

      public B setCloseButtonEnabled(boolean isEnabled)
    • setCameraSwitchEnabled

      public B setCameraSwitchEnabled(boolean isEnabled)
    • setTorchButtonEnabled

      public B setTorchButtonEnabled(boolean isEnabled)
    • setCameraId

      public B setCameraId(int cameraId)
    • registerUiFragmentClass

      public B registerUiFragmentClass(Class<? extends FaceUiFragment> uiFragment)
    • setRecordingProcess

      @Deprecated public B setRecordingProcess(boolean ignoredIsRecordingProcess)
      Deprecated.
      Set the flag to false to disable recording liveness process
      Parameters:
      ignoredIsRecordingProcess - the flag allows recording process video.
      Returns:
      the Builder
      Since:
      6.1
    • setVibrateOnStep

      public B setVibrateOnStep(boolean vibrateOnSteps)
    • setOverrideCameraRotationAngle

      protected B setOverrideCameraRotationAngle(boolean override)
    • setCameraRotationAngle

      public B setCameraRotationAngle(int angle)
    • setScreenOrientationInt

      protected B setScreenOrientationInt(int size, Parcel source)
    • setCopyright

      public B setCopyright(boolean hasCopyright)
    • setScreenOrientation

      public B setScreenOrientation(ScreenOrientation... screenOrientation)
    • setPreventScreenRecording

      public B setPreventScreenRecording(boolean preventScreenRecording)
    • self

      protected abstract B self()
    • preBuild

      protected void preBuild()
    • createInstance

      protected abstract C createInstance()
    • build

      public final C build()