RFSLivenessConfiguration
Objective-C
@interface RFSLivenessConfiguration
: RFSBaseConfiguration <RFSLivenessConfigurationBuilder *> <NSObject>
Swift
class LivenessConfiguration : BaseConfiguration<LivenessConfigurationBuilder>, NSObjectProtocol
Configuration for the Liveness processing.
This class is used as a parameters for -[RFSFaceSDK startLivenessFrom:animated:configuration:onLiveness:completion:]
.
The configuration provides convenient properties to change the behavior and the appearance of the Liveness UI module.
-
Defines, whether the logo is visible on the bottom of Liveness UI screens. Defaults to
true
.Declaration
Objective-C
@property (nonatomic, readonly, getter=isCopyright) BOOL copyright;
Swift
var isCopyright: Bool { get }
-
Defines which steps of the user interface can be omitted. See RFSLivenessStepSkip enum for details.
Declaration
Objective-C
@property (nonatomic, readonly) RFSLivenessStepSkip stepSkippingMask;
Swift
var stepSkippingMask: RFSLivenessStepSkip { get }
-
The number of attempts to pass the Liveness before completing with error. Defaults to
0
. When set to0
the Liveness will always ask to retry on error. When set to1
or more the Liveness will end withRFSLivenessError.RFSLivenessErrorProcessingAttemptsEnded
error when the number of attemps exceeds.Declaration
Objective-C
@property (nonatomic, readonly) NSInteger attemptsCount;
Swift
var attemptsCount: Int { get }
-
Defines whether the liveness request sends a location of a device. Defaults to
true
. When set totrue
the liveness request to web service will contain thelocation
object within the jsonmetadata
object. The location is used only when permissions are granted and the location is available.Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readonly, getter=isLocationTrackingEnabled) BOOL locationTrackingEnabled;
Swift
var isLocationTrackingEnabled: Bool { get }
-
Defines whether the liveness recording video of processing. Defaults to
RFSRecordingProcessAsynchronousUpload
.Declaration
Objective-C
@property (nonatomic, readonly) RFSRecordingProcess recordingProcess;
Swift
var recordingProcess: RecordingProcess { get }
-
Defines whether the liveness processing type. Defaults to
RFSLivenessTypeActive
.Declaration
Objective-C
@property (nonatomic, readonly) RFSLivenessType livenessType;
Swift
var livenessType: LivenessType { get }
-
Defines tag that can be used in Liveness processing. Defaults to
nil
.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) NSString *tag;
Swift
var tag: String? { get }
-
Defines custom metadata to be send to Core.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) NSDictionary *metadata;
Swift
var metadata: [AnyHashable : Any]? { get }
-
Enables vibration during Liveness processing. Defaults to
true
.Declaration
Objective-C
@property (nonatomic, readonly) BOOL vibrateOnSteps;
Swift
var vibrateOnSteps: Bool { get }
-
Defines, whether the camera’s toolbar switch camera button is available on the Liveness UI. Defaults to
false
. When set totrue
the CameraToolbarView will contain a button to change currentcameraPosition
. Only for livenessType = RFSLivenessTypePassive.Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isCameraSwitchButtonEnabled) BOOL cameraSwitchButtonEnabled;
Swift
var isCameraSwitchButtonEnabled: Bool { get set }
-
Defines, whether the camera’s toolbar torch button is available on the Liveness UI. Defaults to
true
. When set tofalse
the CameraToolbarView won’t contain a button to toggle camera’s flashlight. Only for livenessType = RFSLivenessTypePassive.Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readonly, getter=isTorchButtonEnabled) BOOL torchButtonEnabled;
Swift
var isTorchButtonEnabled: Bool { get }
-
Defines, whether the camera’s toolbar close button is available on the Liveness UI. Defaults to
true
. When set tofalse
the CameraToolbarView won’t contain a button to close a moduleDeclaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readonly, getter=isCloseButtonEnabled) BOOL closeButtonEnabled;
Swift
var isCloseButtonEnabled: Bool { get }
-
Selected camera device position. Defaults to
.front
. Only for livenessType = RFSLivenessTypePassive.Declaration
Objective-C
@property (nonatomic, readonly) RFSCameraPosition cameraPosition;
Swift
var cameraPosition: CameraPosition { get }