public interface FaceAuthEnroller
FaceAuthFactory methods.| Modifier and Type | Method and Description | 
|---|---|
void | 
addFaceAuthEnrollerListener(FaceAuthEnrollerListener listener)
Add a listener to receive  
FaceAuthFrameEvent as soon as the
 enroll(int, FaceAuthEnrollerCallback) is called | 
void | 
addFaceFrameForEnrollment(FaceAuthFrameEvent faceAuthFrameEvent)
Add the face frame for extraction. 
 | 
boolean | 
cancelEnrollmentProcess()
Cancel enrollment process. 
 | 
void | 
completeEnrollment(FaceAuthFrameEvent faceAuthFrameEvent)
Asynchronous call to complete the enrollment process, all faces marked
 for enrollment will be extracted and compile to create a unique user
 template. 
 | 
void | 
enroll(int timeout,
      FaceAuthEnrollerCallback callback)
Start the enrollment process for the user. 
 | 
void | 
removeFaceAuthEnrollerListener(FaceAuthEnrollerListener listener)
Remove a  
FaceAuthEnrollerListener that has been added in
 addFaceAuthEnrollerListener(FaceAuthEnrollerListener)
 
  | 
void | 
unenroll(FaceAuthUnenrollerCallback callback)
Unenroll a user from the system. 
 | 
void enroll(int timeout,
            FaceAuthEnrollerCallback callback)
FaceAuthEnrollerListener is called with current image, capturing
 status, and liveness property.
 
 FaceAuthService.setContext(android.content.Context) (The context needs to be set
 again if there is a change in Activity or previous activity is killed). timeout - in millisecond for operation to be completedcallback - The callback to be triggered as soon as the operation
            completes with any result. It must never be null. Note
            that the callback is always called from within the main UI
            thread context and always after this method returns to its
            caller.void addFaceFrameForEnrollment(FaceAuthFrameEvent faceAuthFrameEvent) throws FaceAuthException
FaceAuthFrameEvent can be retrieved from
 FaceAuthEnrollerListener.onFrameReceived(FaceAuthFrameEvent)
 
 Once a frame event is received, the application developer should decide
 if the frame is to be added for extraction. Some checking can be
 performed. 
 
 eg:
 faceAuthFrameEvent - event containing the face to be addedFaceAuthExceptionvoid completeEnrollment(FaceAuthFrameEvent faceAuthFrameEvent)
FaceAuthEnrollerCallback is called.faceAuthFrameEvent - FaceFrameEvent containing the user face to use for enrollmentvoid unenroll(FaceAuthUnenrollerCallback callback)
FaceAuthService.setContext(android.content.Context) (For
 example, if there is a change in Activity).callback - The callback to be triggered as soon as the operation
            completes with any result. Must never be null. Note
            that the callback is always called from within the main UI
            thread context and always after this method returns to its
            caller.void addFaceAuthEnrollerListener(FaceAuthEnrollerListener listener)
FaceAuthFrameEvent as soon as the
 enroll(int, FaceAuthEnrollerCallback) is calledlistener - Listener to be addedvoid removeFaceAuthEnrollerListener(FaceAuthEnrollerListener listener)
FaceAuthEnrollerListener that has been added in
 addFaceAuthEnrollerListener(FaceAuthEnrollerListener)
 
 listener - Listener to be removedboolean cancelEnrollmentProcess()