/// <summary> /// Accepts the name of a visitor. Removes them from whitelist. /// </summary> public async static void RemoveUserFromWhitelist(string name) { // Acquires instance of Oxford SDK controller FaceApiRecognizer sdkController = FaceApiRecognizer.Instance; // Asynchronously remove user from whitelist await sdkController.RemovePersonFromWhitelistAsync(name); }
/// <summary> /// Accepts the name of a visitor. Removes them from whitelist. /// </summary> public async static void RemoveUserFromWhitelist(string name) { try { // Acquires instance of Oxford SDK controller FaceApiRecognizer sdkController = FaceApiRecognizer.Instance; // Asynchronously remove user from whitelist await sdkController.RemovePersonFromWhitelistAsync(name); } catch (Exception) { Debug.WriteLine("Fail to deleted user"); } }