Class CameraConfiguration

    • Constructor Detail

      • CameraConfiguration

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

      • 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 java.lang.Class<? extends FaceUiFragment> getRegisteredUiFragmentClass()
      • hasCopyright

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

        public boolean isVibrateOnSteps()
      • getScreenOrientationInt

        protected int[] getScreenOrientationInt()
      • writeToParcel

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

        public int describeContents()