Advanced Customization
In scenarios where further customization is needed, the style properties for individual views can be overridden as well.
Applying Global Theme
alone should be sufficient for most use cases. If you wish, however, to further adjust specific elements of capture, you can do so by modifying a generated Capture.RuntimeSettings
before it’s passed to CaptureNavigationController
.
Note: Currently this customization is not available in Objective-C.
Steps:
- Follow the Steps 1-5 of Overview in Branding Implementation section.
- Once
Capture.RuntimeSettings
was created (for receipt or invoice), further customize it as you need - Continue to Steps 6, etc. of the Overview in Branding Implementation section.
Example:
In the following example the style of the Gallery button on the Capture screen is changed from the settings specified by global Branding
// 1. Follow the Branding Implementation process steps 1 - 5:
let receiptRuntimeSettings = Capture.RuntimeSettings.receipt(branding: branding)
// 2. Apply further customization
receiptRuntimeSettings.captureScreen.galleryButton = Capture.Interface.IconActionButtonForUIKit(
accessibilityLabel: "Enter the gallery",
backgroundColor: .yellow,
foregroundColor: .blue,
image: UIImage(systemName: "photo.on.rectangle.angled")!
)
// 3. Continue Branding Implementation process at step 6
let capture = CaptureNavigationController(settings: receiptRuntimeSettings)
Apply Styles to Specific Components
For more information on this type of customization please reach out to us.
Runtime Theme
The Sensibill Android SDK has the ability to accept a programmatic theme at runtime if required. Please see Android Runtime Theme for more details.