SBSDKUIGenericDocumentRecognizerConfiguration
@interface SBSDKUIGenericDocumentRecognizerConfiguration : SBSDKUIConfiguration
This class describes the look and feel, the behavior and the textual contents of the generic document recognizers screen. Use the ‘defaultConfiguration’ class method to retrieve an instance and modify it as needed.
-
Designated initializer. Creates a new instance of ‘SBSDKUIGenericDocumentRecognizerConfiguration’ and returns it.
Declaration
Objective-C
- (nonnull instancetype) initWithUIConfiguration: (nonnull SBSDKUIGenericDocumentRecognizerUIConfiguration *) uiConfiguration textConfiguration: (nonnull SBSDKUIGenericDocumentRecognizerTextConfiguration *) textConfiguration behaviorConfiguration: (nonnull SBSDKUIGenericDocumentRecognizerBehaviorConfiguration *) behaviorConfiguration cameraConfiguration: (nonnull SBSDKUICameraConfiguration *)cameraConfiguration;
Swift
init(uiConfiguration: SBSDKUIGenericDocumentRecognizerUIConfiguration, textConfiguration: SBSDKUIGenericDocumentRecognizerTextConfiguration, behaviorConfiguration: SBSDKUIGenericDocumentRecognizerBehaviorConfiguration, cameraConfiguration: SBSDKUICameraConfiguration)
Parameters
uiConfiguration
A configuration for the user interface. Defines colors and sizes.
textConfiguration
A configuration for the text being displayed in the scanner screen.
behaviorConfiguration
A configuration for the scanners behavior.
cameraConfiguration
A configuration for the scanners camera.
-
The default configuration.
Declaration
Objective-C
+ (nonnull SBSDKUIGenericDocumentRecognizerConfiguration *)defaultConfiguration;
Swift
class func `default`() -> SBSDKUIGenericDocumentRecognizerConfiguration
Return Value
A mutable instance of ‘SBSDKUIGenericDocumentRecognizerConfiguration’ with default values.
-
The configuration for the user interface.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nonnull) SBSDKUIGenericDocumentRecognizerUIConfiguration *uiConfiguration;
Swift
var uiConfiguration: SBSDKUIGenericDocumentRecognizerUIConfiguration { get }
-
The configuration for the displayed texts.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nonnull) SBSDKUIGenericDocumentRecognizerTextConfiguration *textConfiguration;
Swift
var textConfiguration: SBSDKUIGenericDocumentRecognizerTextConfiguration { get }
-
The configuration for the behavior.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nonnull) SBSDKUIGenericDocumentRecognizerBehaviorConfiguration *behaviorConfiguration;
Swift
var behaviorConfiguration: SBSDKUIGenericDocumentRecognizerBehaviorConfiguration { get }
-
Declaration
Swift
@objc convenience init?(json: String, partial: Bool = true)