RFSFaceCaptureConfiguration

Objective-C


@interface RFSFaceCaptureConfiguration
    : RFSBaseConfiguration <RFSFaceCaptureConfigurationBuilder *> <NSObject>

Swift

class FaceCaptureConfiguration : BaseConfiguration<FaceCaptureConfigurationBuilder>, NSObjectProtocol

Configuration for the FaceCapture.

This class is used as a parameters for -[RFSFaceSDK presentFaceCaptureViewControllerFrom:animated:configuration:onCapture:completion:]. The configuration provides convenient properties to change the behavior and the appearance of the FaceCapture UI module.

  • Defines whether the RFSHintView idle animation is enabled or not. Defaults to true. When set to false the RFSHintView will not play the animation that is triggered when hint statuses remain the same for some time.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readonly,
              getter=isHintAnimationEnabled) BOOL enableHintAnimation;

    Swift

    var isHintAnimationEnabled: Bool { get }

Camera

  • Defines whether the camera switch button is available on the FaceCapture UI. Defaults to false. When set to true the RFSCameraToolbarView will contain a button to change current cameraPosition.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL cameraSwitchEnabled;

    Swift

    var cameraSwitchEnabled: Bool { get }
  • Selected camera device position. Defaults to .front.

    Declaration

    Objective-C

    @property (nonatomic, readonly) RFSCameraPosition cameraPosition;

    Swift

    var cameraPosition: CameraPosition { get }