Customization
When launching the Capture flow, you can optionally provide an instance of SbCaptureConfiguration
. This will define how the Capture flow behaves on both platforms, and how it looks on iOS. The SbCaptureConfiguration
interface reference is provided here
:
const captureConfiguration: SbCaptureConfiguration = {
// Optionally set the document type
documentType: SbCaptureDocumentType.RECEIPT, // or INVOICE
// Optionally define capture feature flags
captureFeatures: {
// ...
},
// Optionally define the branding
branding: {
// ...
},
};
// Pass the configuration instance when launching the Capture
const capturedDocuments = await SensibillCaptureStandalone.captureDocuments(captureConfiguration);
Note that the configuration itself, and all its properties are optional. If a property is not provided, the SDK will use a default option for that property.
Currently the following aspects of the Capture can be configured: