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