qsh-webview-sdk 2.3.7 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -397,8 +397,7 @@ declare namespace UniWebView {
|
|
|
397
397
|
}
|
|
398
398
|
|
|
399
399
|
/**
|
|
400
|
-
*
|
|
401
|
-
* 只发送请求,不返回任何结果给调用者
|
|
400
|
+
* 人脸识别选项
|
|
402
401
|
*/
|
|
403
402
|
interface FaceVerifyOptions {
|
|
404
403
|
/** 姓名(必填) */
|
|
@@ -411,18 +410,20 @@ declare namespace UniWebView {
|
|
|
411
410
|
* 人脸识别功能能力信息
|
|
412
411
|
*/
|
|
413
412
|
interface FaceCapabilities {
|
|
414
|
-
/**
|
|
413
|
+
/** 是否支持人脸识别 */
|
|
415
414
|
supported: boolean;
|
|
416
415
|
/** 当前环境类型 */
|
|
417
416
|
environment: string;
|
|
418
|
-
/**
|
|
419
|
-
implementation: "weixin";
|
|
417
|
+
/** 底层实现类型 */
|
|
418
|
+
implementation: "weixin" | "uniapp";
|
|
420
419
|
/** 功能特性 */
|
|
421
420
|
features: {
|
|
422
421
|
/** 支持 Promise */
|
|
423
422
|
asyncSupport: boolean;
|
|
424
423
|
/** 通过宿主页跳转实现 */
|
|
425
424
|
hostPageNavigation?: boolean;
|
|
425
|
+
/** 通过宿主桥接实现 */
|
|
426
|
+
hostBridge?: boolean;
|
|
426
427
|
};
|
|
427
428
|
}
|
|
428
429
|
|
|
@@ -521,8 +522,8 @@ declare namespace UniWebView {
|
|
|
521
522
|
getPrintCapabilities(): PrintPdfCapabilities;
|
|
522
523
|
|
|
523
524
|
/**
|
|
524
|
-
*
|
|
525
|
-
*
|
|
525
|
+
* 人脸识别(仅支持微信小程序和 UniApp 环境)
|
|
526
|
+
* 微信环境通过 wx.miniProgram.navigateTo 跳转宿主 /pages/face/index,UniApp 环境通过桥接调用宿主实现
|
|
526
527
|
*/
|
|
527
528
|
faceVerify(options: FaceVerifyOptions): void;
|
|
528
529
|
/** 获取人脸识别功能能力信息 */
|