PerceptionStartFaceAuthenticationHandler 委托

定义

当 PerceptionFaceAuthenticationGroup 进入人脸身份验证模式时调用。

public delegate bool PerceptionStartFaceAuthenticationHandler(PerceptionFaceAuthenticationGroup ^ sender);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1954639146, 8336, 18032, 140, 72, 239, 57, 231, 255, 124, 38)]
class PerceptionStartFaceAuthenticationHandler : MulticastDelegate
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1954639146, 8336, 18032, 140, 72, 239, 57, 231, 255, 124, 38)]
/// [Windows.Foundation.Metadata.Deprecated("PerceptionStartFaceAuthenticationHandler may be unavailable after Windows Creator Update. Please refer to AVStream on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
class PerceptionStartFaceAuthenticationHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1954639146, 8336, 18032, 140, 72, 239, 57, 231, 255, 124, 38)]
public delegate bool PerceptionStartFaceAuthenticationHandler(PerceptionFaceAuthenticationGroup sender);
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1954639146, 8336, 18032, 140, 72, 239, 57, 231, 255, 124, 38)]
[Windows.Foundation.Metadata.Deprecated("PerceptionStartFaceAuthenticationHandler may be unavailable after Windows Creator Update. Please refer to AVStream on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public delegate bool PerceptionStartFaceAuthenticationHandler(PerceptionFaceAuthenticationGroup sender);
var perceptionStartFaceAuthenticationHandlerHandler = function(sender){
/* Your code */
}
Public Delegate Function PerceptionStartFaceAuthenticationHandler(sender As PerceptionFaceAuthenticationGroup) As Boolean 

参数

sender
PerceptionFaceAuthenticationGroup

已注册的关联 PerceptionFaceAuthenticationGroup。

返回值

Boolean

bool

如果组已准备好进行人脸身份验证,则其值为 True;否则为 false。

属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

PerceptionFaceAuthenticationGroup 的所有成员都应调整任何设置,以完全支持人脸身份验证,例如 IPerceptionFrameProvider 成员基础设备上的对比度或曝光。 处理程序返回是否所有成员都准备好预设置人脸身份验证。

如果处理程序返回 true,则所有成员都应保持此模式,直到调用与组关联的 PerceptionStopFaceAuthenticationHandler。

如果处理程序返回 false,则 IPerceptionFrameProvider () 不用于人脸身份验证。

适用于