Companion

object Companion

Functions

Link copied to clipboard
fun buildFragmentArguments(@DrawableRes guideViewDrawableId: Int? = null, guideViewAlignedScalePercentage: Float? = null, guideViewUnalignedScalePercentage: Float? = null, guideViewShowVignette: Boolean? = null, @DrawableRes manualButtonDrawableId: Int? = null, manualButtonVisible: Boolean? = 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, @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, misnapViewShouldShowGlareBox: Boolean? = null, reviewCondition: DocumentAnalysisFragment.ReviewCondition? = null, handleOrientation: Boolean? = null, shouldShowDocumentLabel: Boolean? = null, @StringRes documentLabelStringId: Int? = 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, guideViewAlignedScalePercentage: Float? = null, guideViewUnalignedScalePercentage: Float? = null, guideViewShowVignette: Boolean? = null, @DrawableRes manualButtonDrawableId: Int? = null, manualButtonVisible: Boolean? = 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, @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, misnapViewShouldShowGlareBox: Boolean? = null, reviewCondition: DocumentAnalysisFragment.ReviewCondition? = null, handleOrientation: Boolean? = null, shouldShowDocumentLabel: Boolean? = null, @StringRes documentLabelStringId: Int? = 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

Integer attribute for providing the string resource id for the document label.

Link copied to clipboard

Float attribute for providing the percentage of the screen width that the guide view takes up. This value is for when the document and the device are aligned, use GUIDE_VIEW_UNALIGNED_SCALE_PERCENTAGE for specifying the width when they are opposite.

Link copied to clipboard

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

Link copied to clipboard

Boolean attribute for displaying a vignette around the guide view.

Link copied to clipboard

Float attribute for providing the percentage of the screen width that the guide view takes up. This value is for when the document and device are not aligned, use GUIDE_VIEW_ALIGNED_SCALE_PERCENTAGE for specifying the width when they are the same.

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

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

Link copied to clipboard

Boolean attribute for determining if the manual button will be shown.

Link copied to clipboard

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

Link copied to clipboard

Boolean attribute for if the camera should display on screen the detected glare box of the document 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 for toggling the visibility of the document label. When turned on a text view will be displayed on the screen to indicate the document type that is expected during the session, e.g. "Check front".

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.