Atalasoft MobileImage API Reference
|
This class renders a visual experience on top of the capture control when it is facing front side and returns an image depending on the criteria set by the user. More...
#import <KFXSelfieCaptureExperience.h>
Instance Methods | |
(void) | - takePicture |
Begins the image capture process. More... | |
(void) | - stopCapture |
Stops taking a picture. More... | |
(id) | - initWithCaptureControl:criteria: |
Initialized for the object using the specified parameters. More... | |
Properties | |
KFXSelfieCaptureExperienceCriteriaHolder * | criteriaHolder |
Document capture criteria. More... | |
kfxKUICaptureMessage * | userInstruction |
An instructional text box that is displayed to the user while trying to capture a selfie. More... | |
kfxKUICaptureMessage * | eyesBlinkInstruction |
An instructional text box that is displayed to the user while trying to capture a selfie. More... | |
kfxKUICaptureMessage * | capturedMessage |
An instructional balloon that is displayed to the user for when seflie is successfully captured. More... | |
UIColor * | frameColor |
frame color. More... | |
UIColor * | outerViewfinderColor |
Outer viewfinder color. More... | |
BOOL | vibrationEnabled |
Whether to start vibration when an image is captured. More... | |
This class renders a visual experience on top of the capture control when it is facing front side and returns an image depending on the criteria set by the user.
This class is responsible for rendering the enhanced visual experience on top of the capture control, and provides feedback to guide the user to take an optimal photo that meets all of the configured capture criteria.
- (id) initWithCaptureControl: | (kfxKUIImageCaptureControl *) | captureControl | |
criteria: | (KFXSelfieCaptureExperienceCriteriaHolder *) | criteria | |
Initialized for the object using the specified parameters.
Initializes a base selfie capture experience and binds it to the given image capture control. The experience class overrides the capture control delegate to provide additional behavior and guidance useful for capturing documents. It also forwards delegate invocations to the original delegate set on the capture control, thus acting as a proxy.
If you are interested in handling any of the delegate methods on the capture control, it is important that you set your delegate before initializing the capture experience. Setting a new delegate after initializing the capture experience will break the association with the capture control, and allow the capture experience to be shut down and deallocated if no other references to the object remain. This is the proper protocol for cleaning up a capture experience you are no longer interested in.
The selfie capture experience will add several overlays and subviews on top of the associated image capture control for visual guidance and feedback. It will also manage some of the capture control's native properties, which could interfere with any properties you directly modify on the control.
captureControl | An instance of a kfxKUIImageCaptureControl object and cameraType set to kfxKUIFrontCamera to avoid unkonwn results. |
criteria | A collection of constraints and attributes that control the behavior of the capture experience. Pass nil for the default experience. |
- (void) stopCapture |
Stops taking a picture.
Calling this method to stop taking pictures
- (void) takePicture |
Begins the image capture process.
Calling this method will start the process of monitoring the configured capture criteria. An image will be captured once all of the criteria are met. The delegate will receive a imageCaptureControl:imageCaptured: message for each captured image.
|
readwritenonatomicstrong |
An instructional balloon that is displayed to the user for when seflie is successfully captured.
This message will be displayed when selfie is captured.
Default configuration:
|
readwritenonatomicassign |
Document capture criteria.
A collection of constraints and attributes that control the behavior of the capture experience. Pass nil to use default configuration.
|
readwritenonatomicstrong |
An instructional text box that is displayed to the user while trying to capture a selfie.
This instruction will be displayed during periods where other guidance is not available to correct a user. This may happen in particular when crieteria got matched.
The following kfxKUICaptureMessage properties are not supported for this message:
Default configuration:
|
readwritenonatomicstrong |
frame color.
Specifies the color that will be used for the guidance frame. The default color is black.
|
readwritenonatomicstrong |
Outer viewfinder color.
Specifies the color that will be used for the outer viewfinder background.
The default color is transparent black.
|
readwritenonatomicstrong |
An instructional text box that is displayed to the user while trying to capture a selfie.
This instruction will be displayed during periods where other guidance is not available to correct a user. This may happen in particular when the user is holding a device far away from a user, preventing automated detection from recognizing the selfie.
The following kfxKUICaptureMessage properties are not supported for this message:
Default configuration:
|
readwritenonatomicassign |
Whether to start vibration when an image is captured.
A boolean to turn on/off vibration when an image is captured for haptic feedback.
By default is YES.