我对毛伊岛有意见。我需要实现生物识别身份验证(Ios 设备上的面部 ID),但 Plugin.Fingerprint 包不起作用(它可能已经过时)。我正在使用.Net 版本 7.0.0。我尝试过将对象实例化为单例:
builder.Services.AddSingleton(typeof(IFingerprint), CrossFingerprint.Current);
Run Code Online (Sandbox Code Playgroud)
并注射它
private readonly IFingerprint fingerprint;
public loginView(loginViewModel _loginViewModel,
IFingerprint _fingerprint)
Run Code Online (Sandbox Code Playgroud)
创建对象时抛出错误:
This functionality is not implemented in the portable version of this assembly. You should reference the NuGet package from your main application project in order to reference the platform-specific implementation.
Run Code Online (Sandbox Code Playgroud)
有人能帮我吗?谢谢
| 归档时间: |
|
| 查看次数: |
1058 次 |
| 最近记录: |