Server API > BS2_SetServerMatchingHandler
Registers callback functions that can distinguish whether the card, fingerprint, user ID corresponds.
#include "BS_API.h" int BS2_SetServerMatchingHandler(void* context, OnVerifyUser ptrVerifyUser, OnIdentifyUser ptrIdentifyUser);
context
: ContextptrVerifyUser
: Callback function that is called when the user information mapped to the card or user ID is required from the deviceptrIdentifyUser
: Callback function that is called when the user information mapped to the fingerprint is required from the device
NOTE
To use the server matching service, the BS2AuthConfig's useServerMatching should be set as true.
If successfully done, BS_SDK_SUCCESS
will be returned.
If there is an error, the corresponding error code will be returned.