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, @DrawableRes torchViewOnDrawableId: Int? = null, @DrawableRes torchViewOffDrawableId: 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, reviewCondition: BarcodeAnalysisFragment.ReviewCondition? = null, handleOrientation: Boolean? = null, shouldShowCancelButton: Boolean? = null, @DrawableRes cancelButtonDrawableId: Int? = null, shouldShowBarcodeLabel: Boolean? = null, @StringRes barcodeLabelStringId: 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, @DrawableRes torchViewOnDrawableId: Int? = null, @DrawableRes torchViewOffDrawableId: 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, reviewCondition: BarcodeAnalysisFragment.ReviewCondition? = null, handleOrientation: Boolean? = null, shouldShowCancelButton: Boolean? = null, @DrawableRes cancelButtonDrawableId: Int? = null, shouldShowBarcodeLabel: Boolean? = null, @StringRes barcodeLabelStringId: 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 string resource id for the barcode label.

Link copied to clipboard

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

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 barcode 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 barcode and the 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 drawable resource id for the manual button.

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 barcode label. When turned on a text view will be displayed on the screen to indicate the barcode type that is expected during the session, e.g. "QR Code".

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

Integer attribute for providing the drawable resource id for the success view's background. If not provided the success view will use the final 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 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.