VerIDUserManagement

@available(iOS 10.0, *)
public class VerIDUserManagement : NSObject, UserManagement

Ver-ID SDK’s default implementation of the UserManagement protocol. Uses Core Data to store the user face records.

  • Face template encryption instance

    Since

    1.7.0

    Declaration

    Swift

    public let faceTemplateEncryption: FaceTemplateEncryption
  • Indicates whether face template encryption is disabled

    Since

    1.7.0

    Declaration

    Swift

    public let isEncryptionDisabled: Bool
  • Assign faces to a user

    Declaration

    Swift

    public func assignFaces(_ faces: [Recognizable], toUser userId: String, completion: ErrorCallback? = nil)

    Parameters

    faces

    Faces to assign to the user

    userId

    ID of the user to assign the faces to

    completion

    Callback to invoke on completion

  • Delete faces

    Declaration

    Swift

    public func deleteFaces(_ faces: [Recognizable], completion: ((Error?) -> Void)? = nil)

    Parameters

    faces

    Faces to delete

    completion

    Completion callback

  • Get all registered users

    Throws

    Error if the operation fails

    Declaration

    Swift

    public func users() throws -> [String]

    Return Value

    Array of registered user IDs

  • Get faces of a user

    Throws

    Error if the operation fails

    Declaration

    Swift

    public func facesOfUser(_ userId: String) throws -> [Recognizable]

    Parameters

    userId

    ID of the user whose faces to get

    Return Value

    Array of user’s recognizable faces

  • Get all registered faces

    Throws

    Error if the operation fails

    Declaration

    Swift

    public func faces() throws -> [Recognizable]

    Return Value

    Array of recognizable faces

  • Delete users

    Declaration

    Swift

    public func deleteUsers(_ userIds: [String], completion: ((Error?) -> Void)? = nil)

    Parameters

    userIds

    IDs of the users to delete

    completion

    Callback on completion