SybrinIdentityConfiguration.Builder
import com.sybrin.identity.SybrinIdentityConfiguration
Builder for the immutable SybrinIdentityConfiguration class
Summary
Public constructors |
Builder(String license) Creates a new Builder using a Sybrin Identity Android License. |
Public methods | |
build() Creates and returns a built SybrinIdentityConfiguration object. | |
enableHelpMessage(boolean enableHelpMessage) Sets the visibility of the help message. | |
enableMultiPhaseVerification(boolean enableMultiPhaseVerification) Sets whether the verification between scanning phases is enabled. | |
enablePartialScanning(boolean enablePartialScanning) Sets whether there is partial scanning of documents. | |
enableTorchButton(boolean enableTorchButton) Sets the visibility of the torch button. | |
saveImages(boolean saveImages) Sets whether the SDK should save all captured images to the device upon completion of the scanning process. | |
setCameraFacing(CameraFacing cameraFacing) Sets the direction of the camera that is used for the scanning process. | |
setCustomAuthorizationToken(String customAuthorizationToken) Specifies a custom authorization token to be used during the online calls within the SDK. | |
setCutoutCornerRadius(int CutoutCornerRadius) Sets the radius of the overlay cutout corners. | |
setEnvironmentKey(String environmentKey) Sets key that defines the SDK's internal environment variables. | |
setOverlayBorderColor(int overlayBorderColor) Sets the color of the overlay cutout border. | |
setOverlayBorderLength(int overlayBorderLength) Sets the length of the overlay cutout border corner pieces. | |
setOverlayBorderThickness(int overlayBorderThickness) Sets the thickness of the overlay cutout border. | |
setOverlayBrandingSubtitleColor(int overlayBrandingSubtitleColor) Sets the text color of the branding subtitle. | |
setOverlayBrandingSubtitleText(String overlayBrandingSubtitleText) Sets the text of the branding subtitle. | |
setOverlayBrandingTitleColor(int overlayBrandingTitleColor) Sets the text color of the branding title. | |
setOverlayBrandingTitleText(String overlayBrandingTitleText) Sets the text of the branding title. | |
setOverlayColor(int overlayColor) Sets the color of the overlay. | |
setOverlayLabelTextColor(int overlayLabelTextColor) Sets the color of the overlay label text. | |
setOverlaySubLabelTextColor(int overlaySubLabelTextColor) Sets the color of the overlay sub-label text. | |
setTorchButtonColor(int torchButtonColor) Sets the color of the torch button. |
Public constructors
Builder
public Builder (String license)
Creates a new Builder using a Sybrin Identity Android License.
Public methods
build
public
SybrinIdentityConfiguration
build ()
Creates and returns a built SybrinIdentityConfiguration object.
Returns | |
This value cannot be |
enableHelpMessage
public
SybrinIdentityConfiguration.Builder
enableHelpMessage (boolean enableHelpMessage)
Default value: true
Sets the visibility of the help message.
Parameters | |
enableHelpMessage | boolean: |
Returns | |
This value cannot be |
Visual Example:
Default | Configured - No help message |
enableMultiPhaseVerification
public
SybrinIdentityConfiguration.Builder
enableMultiPhaseVerification (boolean enableMultiPhaseVerification)
Default value: false
Sets whether the verification between scanning phases is enabled. An example of this would be to check if the data on the front of an ID Card matches the data found on the back.
Parameters | |
enableMultiPhaseVerification | boolean: |
Returns | |
This value cannot be |
enablePartialScanning
public
SybrinIdentityConfiguration.Builder
enablePartialScanning (boolean enablePartialScanning)
Default value: true
Sets whether partial scanning for documents is enabled or not. This is only supported for Philippines documents currently
Parameters | |
enablePartialScanning | boolean: |
Returns | |
This value cannot be |
enableTorchButton
public
SybrinIdentityConfiguration.Builder
enableTorchButton (boolean enableTorchButton)
Default value: true
Sets the visibility of the torch button.
Parameters | |
enableTorchButton | boolean: |
Returns | |
This value cannot be |
Visual Example:
Default | Configured - Torch button disabled |
saveImages
public
SybrinIdentityConfiguration.Builder
saveImages (boolean saveImages)
Default value: false
Sets whether the SDK should save all captured images to the device upon completion of the scanning process.
Parameters | |
saveImages | boolean: |
Returns | |
This value cannot be |
setCameraFacing
public
SybrinIdentityConfiguration.Builder
setCameraFacing (
CameraFacing
cameraFacing)
Default value: CameraFacing.Back
Sets the direction of the camera that is used for the scanning process.
Parameters | |
cameraFacing | CameraFacing:
|
Returns | |
This value cannot be |
setCorrelationID
public
SybrinIdentityConfiguration.Builder
setCorrelationID (String correlationID)
Default value: null Sets the correlation ID.
Parameters | |
correctionID | String: The correlation ID |
Returns | |
This value cannot be |
setCustomAuthorizationToken
public
SybrinIdentityConfiguration.Builder
setCustomAuthorizationToken (String customAuthorizationToken)
Specifies a custom authorization token to be used during the online calls within the SDK.
Parameters | |
customAuthorizationToken | String: The custom authorization token |
Returns | |
This value cannot be |
setCutoutCornerRadius
public
SybrinIdentityConfiguration.Builder
setCutoutCornerRadius (int CutoutCornerRadius)
Default value: 0
Sets the radius of the overlay cutout corners.
Parameters | |
setCutoutCornerRadius | int: The radius of the rounded corners of the overlay cutout. |
Returns | |
This value cannot be |
Visual Example:
Default | Configured - Corner radius 30, border disabled |
setEnvironmentKey
public
SybrinIdentityConfiguration.Builder
setEnvironmentKey(String environmentKey)
Sets key that defines the SDK's internal environment variables.
Parameters | |
setEnvironmentKey | String: Key that defines SDK environment variables. Value cannot be |
Returns | |
This value cannot be |
setOverlayBorderColor
public
SybrinIdentityConfiguration.Builder
setOverlayBorderColor (int overlayBorderColor)
Default value: Color.WHITE
Sets the color of the overlay cutout border.
Parameters |
|
setOverlayBorderColor | int |
Returns | |
This value cannot be |
Visual Example:
Default | Configured - Border color green |
setOverlayBorderLength
public
SybrinIdentityConfiguration.Builder
setOverlayBorderLength (int overlayBorderLength)
Default value: 40
Sets the length of the overlay cutout border corner pieces.
Parameters |
|
setOverlayBorderLength | int |
Returns | |
This value cannot be |
Visual Example:
Default | Configured - Border length 150 |
setOverlayBorderThickness
public
SybrinIdentityConfiguration.Builder
setOverlayBorderThickness (int overlayBorderThickness)
Default value: 7
Sets the thickness of the overlay cutout border.
Parameters |
|
setOverlayBorderThickness | int |
Returns | |
This value cannot be |
Visual Example:
Default | Configured - Border thickness 20 | Configured - Border thickness 0 |
setOverlayBrandingSubtitleColor
public
SybrinIdentityConfiguration.Builder
setOverlayBrandingSubtitleColor (int overlayBrandingSubtitleColor)
Default value: Color.WHITE
Sets the text color of the branding subtitle.
Parameters |
|
setOverlayBrandingSubtitleColor | int |
Returns | |
This value cannot be |
Visual Example:
Default | Configured - Branding subtitle color green |
setOverlayBrandingSubtitleText
public
SybrinIdentityConfiguration.Builder
setOverlayBrandingSubtitleText (String overlayBrandingSubtitleText)
Default value: ""
Sets the text of the branding subtitle.
Parameters | |
setOverlayBrandingSubtitleText | String: Text that is shown as the branding subtitle. Value cannot be |
Returns | |
This value cannot be |
Visual Example:
Default | Configured - Branding subtitle text |
setOverlayBrandingTitleColor
public
SybrinIdentityConfiguration.Builder
setOverlayBrandingTitleColor (int overlayBrandingTitleColor)
Default value: Color.WHITE
Sets the text color of the branding title.
Parameters |
|
setOverlayBrandingTitleColor | int |
Returns | |
This value cannot be |
Visual Example:
Default | Configured - Branding title color green |
setOverlayBrandingTitleText
public
SybrinIdentityConfiguration.Builder
setOverlayBrandingTitleText (String overlayBrandingTitleText)
Default value: ""
Sets the text of the branding title.
Parameters | |
setOverlayBrandingTitleText | String: Text that is shown as the branding title. Value cannot be |
Returns | |
This value cannot be |
Visual Example:
Default | Configured -Branding title text |
setOverlayColor
public
SybrinIdentityConfiguration.Builder
setOverlayColor (int overlayColor)
Default value: Color.argb(80, Color.red(Color.BLACK), Color.green(Color.BLACK), Color.blue(Color.BLACK))
Sets the color of the overlay.
Parameters |
|
setOverlayColor | int |
Returns | |
This value cannot be |
Visual Example:
Default | Configured - Overlay color green | Configured - Overlay color green with opacity |
setOverlayLabelTextColor
public
SybrinIdentityConfiguration.Builder
setOverlayLabelTextColor (int overlayLabelTextColor)
Default value: Color.WHITE
Sets the color of the overlay label text.
Parameters |
|
setOverlayLabelTextColor | int |
Returns | |
This value cannot be |
Visual Example:
Default | Configured - Label text color green |
setOverlaySubLabelTextColor
public
SybrinIdentityConfiguration.Builder
setOverlaySubLabelTextColor (int overlaySubLabelTextColor)
Default value: Color.WHITE
Sets the color of the overlay sub-label text.
Parameters |
|
setOverlaySubLabelTextColor | int |
Returns | |
This value cannot be |
Visual Example:
Default | Configured - Sub-label color green |
setTorchButtonColor
public
SybrinIdentityConfiguration.Builder
setTorchButtonColor (int torchButtonColor)
Default value: Color.WHITE
Sets the color of the torch button.
Parameters |
|
setTorchButtonColor | int |
Returns | |
This value cannot be |
Visual Example:
Default | Configured - Torch button green |
Last updated