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?): IntentCreate and return an Intent to launch ReceiptCaptureActivity with the configurations provided to this builder. |
| withAdjustmentFeature | fun ~~withAdjustmentFeature~~(adjustmentFeatureEnabled: Boolean): ReceiptCaptureActivityBuilderDetermine whether to use the post capture image adjustment screen |
| withAttachLocationData | fun withAttachLocationData(attachLocationData: Boolean): ReceiptCaptureActivityBuilderDetermines if the capture flow will attempt to attach location EXIF data to captured images. |
| withAutoCaptureEnabled | fun withAutoCaptureEnabled(autoCaptureEnabled: Boolean): ReceiptCaptureActivityBuilderDetermines if the auto-capture feature will be enabled (usable) for the capture flow |
| withBlurDetectionEnabled | fun withBlurDetectionEnabled(blurDetectionEnabled: Boolean): ReceiptCaptureActivityBuilderDetermines if the blur detection feature will be enabled |
| withCaptureExpense | fun withCaptureExpense(expenseType: ReceiptCaptureExpense): ReceiptCaptureActivityBuilderDetermines which expense type should be attached to the captured receipt. |
| withCropEnabled | fun withCropEnabled(cropEnabled: Boolean): ReceiptCaptureActivityBuilderDetermines if the image cropping feature should be enabled |
| withExternalAccountTransactionId | fun withExternalAccountTransactionId(externalAccountTransactionId: String): ReceiptCaptureActivityBuilderMatch the captured receipt to an external transaction with the specified id |
| withFeedbackToastEnabled | fun withFeedbackToastEnabled(feedbackToastEnabled: Boolean): ReceiptCaptureActivityBuilderDetermines if the capture progress feedback toasts will display during the capture flow |
| withFlashToggleable | fun withFlashToggleable(flashToggleable: Boolean): ReceiptCaptureActivityBuilderDetermines if the flash mode will be toggleable by the user within the capture flow |
| withImageGallerySelectionEnabled | fun withImageGallerySelectionEnabled(imageGalleryEnabled: Boolean): ReceiptCaptureActivityBuilderDetermines if the user will be able to select an image from their device gallery during the capture flow |
| withInitialAutoCaptureState | fun withInitialAutoCaptureState(autoCaptureOn: Boolean): ReceiptCaptureActivityBuilderDetermines if the auto-capture feature will be ON when the capture flow begins |
| withInitialFlashState | fun withInitialFlashState(initialState: FlashMode): ReceiptCaptureActivityBuilderDetermines what the initial flash mode will be when the capture flow begins |
| withLongReceiptEnabled | fun withLongReceiptEnabled(longReceiptEnabled: Boolean): ReceiptCaptureActivityBuilderDetermines if the long receipt capture feature should be enabled |
| withModeSummaryOnboarding | fun withModeSummaryOnboarding(useModeSummaryOnboarding: Boolean): ReceiptCaptureActivityBuilderDetermine which capture onboarding to display on first capture launch for a user. |
| withSecureWindow | fun withSecureWindow(enableSecureWindow: Boolean): ReceiptCaptureActivityBuilderDetermines whether to allow screen capture on the Sensibill capture screens |
| withShowProcessing | fun withShowProcessing(showProcessing: Boolean): ReceiptCaptureActivityBuilderDetermine whether to show the Sensibill Processing Screen after capture is finished |
Companion Object Properties
| Name | Summary |
|---|---|
| standardBuilderCreator | var standardBuilderCreator: (SBFunctionalConfiguration?) -> ReceiptCaptureActivityBuilderReplaceable method to create the standard configuration for the ReceiptCaptureActivityBuilder. |
Companion Object Functions
| Name | Summary |
|---|---|
| getBuilder | fun getBuilder(): ReceiptCaptureActivityBuilderCreate and return a new ReceiptCaptureActivityBuilder ready to be configured |