xwt
2 天以前 0d3eadb50310ca60b8871e967e64da01aa25a9ad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
declare namespace UniNamespace {
  interface StartFacialRecognitionVerifyCallbackResult {
    /**
     * 错误码,成功时为0
     */
    errCode: number;
    /**
     * 错误信息
     */
    errMsg: string;
    /**
     * 抛出错误的模块/主题名
     */
    errSubject?: string;
    /**
     * 引起此错误的下层错误
     */
    cause?: any;
  }
  interface StartFacialRecognitionVerifyOption {
    /**
     * 认证流水号,由服务端根据接入的业务模式调用对应的初始化接口获取
     */
    certifyId: string;
    /**
     * 刷脸圈的颜色
     */
    progressBarColor?: string;
    /**
     * 认证界面UI朝向。port 为竖屏,land 为横屏,默认为 port
     */
    screenOrientation?: string;
    /**
     * 接口调用结束的回调函数(调用成功、失败都会执行)
     */
    complete?: (result: StartFacialRecognitionVerifyCallbackResult) => void;
    /**
     * 接口调用失败的回调函数
     */
    fail?: (result: StartFacialRecognitionVerifyCallbackResult) => void;
    /**
     * 接口调用成功的回调函数
     */
    success?: (result: StartFacialRecognitionVerifyCallbackResult) => void;
  }
}
 
interface Uni {
  /**
   * 获取设备信息MetaInfo
   *
   * 文档: [https://uniapp.dcloud.net.cn/uniCloud/frv/dev.html#get-meta-info](https://uniapp.dcloud.net.cn/uniCloud/frv/dev.html#get-meta-info)
   */
  getFacialRecognitionMetaInfo(): string;
  /**
   * 调起实人认证界面
   *
   * 文档: [https://uniapp.dcloud.net.cn/uniCloud/frv/dev.html#start-frv](https://uniapp.dcloud.net.cn/uniCloud/frv/dev.html#start-frv)
   */
  startFacialRecognitionVerify(options: UniNamespace.StartFacialRecognitionVerifyOption): void;
}