Package com.regula.facesdk.configuration
Class CameraConfiguration
- java.lang.Object
-
- com.regula.facesdk.configuration.CameraConfiguration
-
- Direct Known Subclasses:
FaceCaptureConfiguration
,LivenessConfiguration
public abstract class CameraConfiguration extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CameraConfiguration(int cameraId, boolean isCameraSwitchEnabled, java.lang.Class<? extends FaceUiFragment> uiFragment, boolean isTorchButtonEnabled, boolean isCloseButtonEnabled, boolean hasCopyright, ScreenOrientation[] screenOrientation, boolean vibrateOnSteps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
int
getCameraId()
Return one of native camera idjava.lang.Class<? extends FaceUiFragment>
getRegisteredUiFragmentClass()
ScreenOrientation[]
getScreenOrientation()
protected int[]
getScreenOrientationInt()
boolean
hasCopyright()
Return flag if the logo is visible on the bottom of UI screensboolean
isCameraSwitchEnabled()
Return flag if the camera switch button is available on the FaceCapture UI.boolean
isCloseButtonEnabled()
Return flag if the close button is available on the FaceCapture UI.boolean
isTorchButtonEnabled()
Return flag if the Torch button is available on the FaceCapture UI.boolean
isVibrateOnSteps()
void
writeToParcel(Parcel dest, int flags)
-
-
-
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'
-
getScreenOrientation
public ScreenOrientation[] getScreenOrientation()
-
isVibrateOnSteps
public boolean isVibrateOnSteps()
-
getScreenOrientationInt
protected int[] getScreenOrientationInt()
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
-
describeContents
public int describeContents()
-
-