Selfie Configuration

This is a more detailed configuration for the Selfie capture screen

SIDSelfieCaptureConfig is accessed via a builder pattern using the below method

SIDSelfieCaptureConfig.Builder()

Once the builder is available then more methods can be used

builder.setCameraFace

Takes an enum which is either FRONT or BACK and will use the front camera or back camera respectively

builder.setManualCapture

Default : false

This will stop the SDK from capturing the selfie automatically but will present a button first for the user to click and continue to the next step

builder.setFlashScreen

Default : true

Screen will flash when the selfie is captured and when will not when set to false

builder.setPromptFaceNotFound

Default : Please move your face inside the oval

Prompt for when capturing and no face is detected

builder.setPromptMoveCloser

Default : Please move closer

Prompt for a when a face is detected but user is too far from the camera

builder.setPromptDoSmile

Default : Please smile

Prompt for asking the user to smile whilst capturing the selfie

builder.setPromptCapturing

Default:Capturing selfie, please stay still

Prompt for when capturing is in progress

builder.setPromptFaceTooClose

Default:Please move back

Prompt for when the face has been detected but is too close to the camera

builder.setPromptTooDark

Default:Insufficient light

Prompt for when there is no sufficient light to capture

builder.setPromptBlurry

Default:Please keep your camera still

Prompt for when the image is not clear enough

builder.setPromptIdle

Default:Camera has been idle for too long

Prompt for when camera has been idle and nothing has happened in a while

builder.setPromptCompatibilityMode

Default:This device does not support selfie capture

Prompt for when the device is not supported

builder.setCapturingProgressColor

Default:#cc0ea5de

Colour for the progress circle outlining the oval for selfie capture

builder.setCapturedProgressColor

Default:#990ea5de

Colour for the progress circle outlining the oval for selfie capture after capture is complete

builder.setCaptureTip

Default:Make sure your face is clear enough & the photo is not blurry

Copy for the tip displayed below the prompt on the selfie capture screen

builder.setCaptureTitle

Default:

builder.setReviewTitle

builder.setReviewPrompt

builder.setReviewTip

builder.setReviewConfirmButton

builder.setReviewRetakeButton

builder.setReviewConfirmButtonColor

builder.setReviewConfirmButtonStyle

builder.setReviewRetakeButtonStyle

builder.setOverlayColor

builder.setOverlayAlpha

builder.setOverlayThickness

builder.setOverlayDotted

builder.setCaptureFullScreen

builder.setPromptStyle

builder.setTipStyle

builder.setReviewPromptStyle

builder.setReviewTipStyle

builder.setTitleStyle

builder.setOverlayWidth

builder.setOverlayHeight

Last updated