BRAppearanceTheme
Customizes colors and icons in the SDK's stock scan UI (help sheet, onboarding, camera toolbar, and related surfaces).
Subclass BRAppearanceTheme and override colorForKey: and/or imageForKey: to supply your own values, then assign an instance to BRScanOptions.appearance before you start a scan. Both methods use an opt-in model: return nil for any key you don't want to customize and the SDK keeps its built-in value.
Declaration
@interface BRAppearanceTheme : NSObject
class BRAppearanceTheme : NSObject
Quick Reference
Methods
| Method | Description |
|---|---|
colorForKey: | Returns a color for the given key, or nil to keep the SDK default. |
imageForKey: | Returns an image for the given key, or nil to keep the SDK default asset. |
Methods
colorForKey:
- (nullable UIColor *)colorForKey:(BRAppearanceColorKey)key;
func color(for key: BRAppearanceColorKey) -> UIColor?
Returns a color for the given key, or nil to keep the SDK default for that element. Override in your subclass.
imageForKey:
- (nullable UIImage *)imageForKey:(BRAppearanceIconKey)key;
func image(for key: BRAppearanceIconKey) -> UIImage?
Returns an image for the given key, or nil to keep the SDK default asset. Override in your subclass.