VerIDUserManagementiOS9
public class VerIDUserManagementiOS9 : NSObject, UserManagement
Ver-ID SDK’s default implementation of the UserManagement protocol. Uses Core Data to store the user face records.
-
Assign faces to a user
Declaration
Swift
public func assignFaces(_ faces: [Recognizable], toUser userId: String, completion: ErrorCallback? = nil)Parameters
facesFaces to assign to the user
userIdID of the user to assign the faces to
completionCallback to invoke on completion
-
Delete faces
Declaration
Swift
public func deleteFaces(_ faces: [Recognizable], completion: ((Error?) -> Void)? = nil)Parameters
facesFaces to delete
completionCompletion callback
-
Get all registered users
Throws
Error if the operation failsDeclaration
Swift
public func users() throws -> [String]Return Value
Array of registered user IDs
-
Get faces of a user
Throws
Error if the operation failsDeclaration
Swift
public func facesOfUser(_ userId: String) throws -> [Recognizable]Parameters
userIdID of the user whose faces to get
Return Value
Array of user’s recognizable faces
-
Get all registered faces
Throws
Error if the operation failsDeclaration
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
userIdsIDs of the users to delete
completionCallback on completion
VerIDUserManagementiOS9 Class Reference