SBSDKUITextDataScannerStepResult
@interface SBSDKUITextDataScannerStepResult : NSObject
Encapsulates the result of the text recognition of a ‘SBSDKUITextDataScannerViewController’s workflow step.
-
Not available.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Not available.
Declaration
Objective-C
+ (nonnull instancetype)new;
-
Designated initializer.
Declaration
Objective-C
- (instancetype _Nullable)initWithStepTag:(nonnull NSString *)stepTag text:(nullable NSString *)text confidence:(CGFloat)confidence;
Swift
init?(stepTag: String, text: String?, confidence: CGFloat)
Parameters
stepTag
The tag of the workflow step that recognized this result.
text
The recognized and validated text.
confidence
The confidence of the text recognition.
-
The tag of the workflow step.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nonnull) NSString *stepTag;
Swift
var stepTag: String { get }
-
The recognized and validated text.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) NSString *text;
Swift
var text: String? { get }
-
The confidence of the text recognition.
Declaration
Objective-C
@property (nonatomic, readonly) CGFloat confidence;
Swift
var confidence: CGFloat { get }