UserManagement
@objc(VerIDUserManagement)
public protocol UserManagement
User management protocol
-
Callback on asynchronous operations with optional error parameter
Declaration
Swift
typealias ErrorCallback = (Error?) -> Void -
Note
If faces were previously assigned to another user they should be reassigned to the given user.Declaration
Swift
@objc func assignFaces(_ faces: [Recognizable], toUser userId: String, completion: ErrorCallback?)Parameters
facesFaces or recognizable multiface structures to assign to the user
userIdUser to whom the faces will be assigned
completionCallback on completion
-
Delete faces or multiface structures
Declaration
Swift
@objc func deleteFaces(_ faces: [Recognizable], completion: ErrorCallback?)Parameters
facesFaces to delete
completionCallback on completion
-
Get all managed users
Declaration
Swift
@objc func users() throws -> [String]Return Value
Array of user IDs
-
Get faces of user
Declaration
Swift
@objc func facesOfUser(_ userId: String) throws -> [Recognizable]Parameters
userIdID of the user whose faces to return
Return Value
Array of recognizable faces
-
Get all managed faces
Declaration
Swift
@objc func faces() throws -> [Recognizable]Return Value
Array of recognizable faces
-
Delete users
Declaration
Swift
@objc func deleteUsers(_ userIds: [String], completion: ErrorCallback?)Parameters
userIdsIDs of the users to delete
completionCallback on completion
UserManagement Protocol Reference