View on GitHub

sensibill-android-documentation

com.getsensibill.ui.receipt.capture / ReceiptCaptureActivityBuilder

ReceiptCaptureActivityBuilder

class ReceiptCaptureActivityBuilder

Builder class to be used in order to create Intents for launching ReceiptCaptureActivity

Call the methods in this builder to configure settings for Sensibill Receipt Capture

Use this class by calling getBuilder

Functions

Name Summary
build fun build(context: Context?): Intent
Create and return an Intent to launch ReceiptCaptureActivity with the configurations provided to this builder.
withAdjustmentFeature fun ~~withAdjustmentFeature~~(adjustmentFeatureEnabled: Boolean): ReceiptCaptureActivityBuilder
Determine whether to use the post capture image adjustment screen
withAttachLocationData fun withAttachLocationData(attachLocationData: Boolean): ReceiptCaptureActivityBuilder
Determines if the capture flow will attempt to attach location EXIF data to captured images.
withAutoCaptureEnabled fun withAutoCaptureEnabled(autoCaptureEnabled: Boolean): ReceiptCaptureActivityBuilder
Determines if the auto-capture feature will be enabled (usable) for the capture flow
withBlurDetectionEnabled fun withBlurDetectionEnabled(blurDetectionEnabled: Boolean): ReceiptCaptureActivityBuilder
Determines if the blur detection feature will be enabled
withCaptureExpense fun withCaptureExpense(expenseType: ReceiptCaptureExpense): ReceiptCaptureActivityBuilder
Determines which expense type should be attached to the captured receipt.
withCropEnabled fun withCropEnabled(cropEnabled: Boolean): ReceiptCaptureActivityBuilder
Determines if the image cropping feature should be enabled
withExternalAccountTransactionId fun withExternalAccountTransactionId(externalAccountTransactionId: String): ReceiptCaptureActivityBuilder
Match the captured receipt to an external transaction with the specified id
withFeedbackToastEnabled fun withFeedbackToastEnabled(feedbackToastEnabled: Boolean): ReceiptCaptureActivityBuilder
Determines if the capture progress feedback toasts will display during the capture flow
withFlashToggleable fun withFlashToggleable(flashToggleable: Boolean): ReceiptCaptureActivityBuilder
Determines if the flash mode will be toggleable by the user within the capture flow
withImageGallerySelectionEnabled fun withImageGallerySelectionEnabled(imageGalleryEnabled: Boolean): ReceiptCaptureActivityBuilder
Determines if the user will be able to select an image from their device gallery during the capture flow
withInitialAutoCaptureState fun withInitialAutoCaptureState(autoCaptureOn: Boolean): ReceiptCaptureActivityBuilder
Determines if the auto-capture feature will be ON when the capture flow begins
withInitialFlashState fun withInitialFlashState(initialState: FlashMode): ReceiptCaptureActivityBuilder
Determines what the initial flash mode will be when the capture flow begins
withLongReceiptEnabled fun withLongReceiptEnabled(longReceiptEnabled: Boolean): ReceiptCaptureActivityBuilder
Determines if the long receipt capture feature should be enabled
withModeSummaryOnboarding fun withModeSummaryOnboarding(useModeSummaryOnboarding: Boolean): ReceiptCaptureActivityBuilder
Determine which capture onboarding to display on first capture launch for a user.
withSecureWindow fun withSecureWindow(enableSecureWindow: Boolean): ReceiptCaptureActivityBuilder
Determines whether to allow screen capture on the Sensibill capture screens
withShowProcessing fun withShowProcessing(showProcessing: Boolean): ReceiptCaptureActivityBuilder
Determine whether to show the Sensibill Processing Screen after capture is finished

Companion Object Properties

Name Summary
standardBuilderCreator var standardBuilderCreator: (SBFunctionalConfiguration?) -> ReceiptCaptureActivityBuilder
Replaceable method to create the standard configuration for the ReceiptCaptureActivityBuilder.

Companion Object Functions

Name Summary
getBuilder fun getBuilder(): ReceiptCaptureActivityBuilder
Create and return a new ReceiptCaptureActivityBuilder ready to be configured