Companion

object Companion

Functions

Link copied to clipboard
fun buildFragmentArguments(@DrawableRes guideViewDrawableId: Int? = null, guideViewScalePercentage: Float? = null, guideViewShowVignette: Boolean? = null, @DrawableRes manualButtonDrawableId: Int? = null, timeoutDuration: Int? = null, @DrawableRes torchViewOnDrawableId: Int? = null, @DrawableRes torchViewOffDrawableId: Int? = null, hintDuration: Int? = null, @AnimRes hintAnimationId: Int? = null, hintViewShouldShowBackground: Boolean? = null, hintViewInitialHintDelay: Int? = null, showCountdownTimer: Boolean? = null, countdownTimerDuration: Int? = null, @ArrayRes countdownTimerLabelsId: Int? = null, @AnimRes countdownTimerAnimationId: Int? = null, @DrawableRes recordingIconDrawableId: Int? = null, @AnimRes recordingIconAnimationId: Int? = null, @DrawableRes helpButtonDrawableId: Int? = null, @DrawableRes successViewMessageDrawableId: Int? = null, @AnimRes successViewMessageAnimationId: Int? = null, @DrawableRes successViewBackgroundDrawableId: Int? = null, successViewShouldVibrate: Boolean? = null, successViewSoundUri: String? = null, misnapViewShouldShowBoundingBox: Boolean? = null, reviewCondition: FaceAnalysisFragment.ReviewCondition? = null, handleOrientation: Boolean? = null, changeGuideViewStateOnFeedback: Boolean? = null, lowLightSensitivity: FaceAnalysisFragment.LowLightSensitivity? = null, shouldShowCancelButton: Boolean? = null, @DrawableRes cancelButtonDrawableId: Int? = null): Bundle

Formats an arguments object for this fragment to use with Fragment.setArguments.

Link copied to clipboard
fun buildWorkflowSettings(@DrawableRes guideViewDrawableId: Int? = null, guideViewScalePercentage: Float? = null, guideViewShowVignette: Boolean? = null, @DrawableRes manualButtonDrawableId: Int? = null, timeoutDuration: Int? = null, @DrawableRes torchViewOnDrawableId: Int? = null, @DrawableRes torchViewOffDrawableId: Int? = null, hintDuration: Int? = null, @AnimRes hintAnimationId: Int? = null, hintViewShouldShowBackground: Boolean? = null, hintViewInitialHintDelay: Int? = null, showCountdownTimer: Boolean? = null, countdownTimerDuration: Int? = null, @ArrayRes countdownTimerLabelsId: Int? = null, @AnimRes countdownTimerAnimationId: Int? = null, @DrawableRes recordingIconDrawableId: Int? = null, @AnimRes recordingIconAnimationId: Int? = null, @DrawableRes helpButtonDrawableId: Int? = null, @DrawableRes successViewMessageDrawableId: Int? = null, @AnimRes successViewMessageAnimationId: Int? = null, @DrawableRes successViewBackgroundDrawableId: Int? = null, successViewShouldVibrate: Boolean? = null, successViewSoundUri: String? = null, misnapViewShouldShowBoundingBox: Boolean? = null, reviewCondition: FaceAnalysisFragment.ReviewCondition? = null, handleOrientation: Boolean? = null, changeGuideViewStateOnFeedback: Boolean? = null, lowLightSensitivity: FaceAnalysisFragment.LowLightSensitivity? = null, shouldShowCancelButton: Boolean? = null, @DrawableRes cancelButtonDrawableId: Int? = null): String

Formats an encoded workflow settings JSON string for this fragment to use with MiSnapSettings.Workflow.add.

Link copied to clipboard

Gets the default values used as workflow params on this fragment.

Properties

Link copied to clipboard

Integer attribute for providing the drawable resource id for the cancel button.

Link copied to clipboard

Boolean attribute for enabling the GuideView internal drawable to change between two states (enabled/disabled) depending on the feedback received from the frame analysis. By default the drawable changes between colorFaceSessionGuideViewOnError and colorFaceSessionGuideViewOnSuccess when all IQAs are good.

Link copied to clipboard

Integer attribute for providing the animation resource id for showing the countdown.

Link copied to clipboard

Integer attribute for providing the duration in milliseconds of the countdown timer.

Link copied to clipboard

Integer attribute for providing the labels resource id to display in the countdown.

Link copied to clipboard

Integer attribute for providing the drawable resource id for the guide view.

Link copied to clipboard

Float attribute for providing the percentage of the screen width that the guide view takes up.

Link copied to clipboard

Boolean attribute for displaying a vignette around the guide view.

Link copied to clipboard

Boolean attribute for toggling the orientation handling on this fragment. When turned on the fragment will do its best to adjust the parent activity to the configured orientation while it's being used and revert it back to the original orientation once its gone.

Link copied to clipboard

Integer attribute for providing the drawable resource id for the help button.

Link copied to clipboard

Integer attribute for providing the animation resource id for showing hint messages.

Link copied to clipboard

Integer attribute for providing the duration of each hint to the user in milliseconds.

Link copied to clipboard

Integer attribute for providing an initial hint delay time in milliseconds for the HintView, no hint messages are displayed while the delay is active.

Link copied to clipboard

Boolean attribute for showing a background color for hint messages

Link copied to clipboard

Boolean attribute for enabling the fragment to increase the screen brightness and to change the GuideView vignette to white color to improve the face detection in a dark environment. NOTE: This feature is only available when using the default GUIDE_VIEW_DRAWABLE_ID drawable and when GUIDE_VIEW_SHOW_VIGNETTE value is true.

Link copied to clipboard

Integer attribute for providing the drawable resource id for the manual button.

Link copied to clipboard

Boolean attribute for if the camera should display on screen the detected bounding box of the face or not.

Link copied to clipboard

Integer attribute for providing the animation resource id for the recording icon.

Link copied to clipboard

Integer attribute for providing the drawable resource id for the for the recording icon.

Link copied to clipboard

ReviewCondition attribute for controlling when to navigate to the review screen.

Link copied to clipboard

Boolean attribute for toggling the visibility of the cancel button. When turned on a cancel button will be displayed, pressing this button is equivalent to pressing the back button in the device.

Link copied to clipboard

Boolean attribute to control if the countdown view is shown or not.

Link copied to clipboard

Integer attribute for providing the drawable resource id for the success view's background. If not provided the success view will use the returned image as background.

Link copied to clipboard

Integer attribute for providing the animation resource id for the success view's message.

Link copied to clipboard

Integer attribute for providing the drawable resource id for the success view's message.

Link copied to clipboard

Boolean attribute for if the device should vibrate when the success view starts.

Link copied to clipboard

String attribute for providing the URI path to a sound file that the success view will play when starting. Null will play the default camera shutter sound, while an empty string will play no sound.

Link copied to clipboard

Integer attribute for providing the duration of the session until timeout in milliseconds.

Link copied to clipboard

Integer attribute for providing the drawable resource id for the for the torch view when its state is OFF.

Link copied to clipboard

Integer attribute for providing the drawable resource id for the torch view when its state is ON.