LCBestShotBuilder
Objective-C
@interface LCBestShotBuilder : NSObject
Swift
class LCBestShotBuilder : NSObject
Detector builder of the best shot.
-
Creates an instance of the best shot detector.
Declaration
Objective-C
+ (nonnull id<LCBestShotDetectorProtocol>) buildWithDelegate:(nullable id<LCBestShotDelegate>)delegate livenessAPI:(nullable id<LCOnlineLivenessProtocol>)onlineLiveness configuration:(nonnull LCLunaConfiguration *)configuration licenseConfig:(nonnull LCLicenseConfig *)licenseConfig singleFrameMode:(BOOL)singleFrameMode;
Swift
class func build(with delegate: (any LCBestShotDelegate)?, livenessAPI onlineLiveness: (any LCOnlineLivenessProtocol)?, configuration: LCLunaConfiguration, licenseConfig: LCLicenseConfig, singleFrameMode: Bool) -> any LCBestShotDetectorProtocol
Parameters
delegate
Delegate of the best shot detector.
onlineLiveness
Object which checks liveness..
configuration
Luna ID SDK configuration.
licenseConfig
config which contains all the license info
singleFrameMode
in case you want to check 1 frame only you can set true in here otherwise false
Return Value
new object of Bestshot detector