!14872 OH5.1,新增uiContext支持PC上模应用弹框方式显示身份认证控件,新增userid支持系统应用跨用户身份认证

Merge pull request !14872 from liuhanxiong/OpenHarmony_feature_20241121
This commit is contained in:
openharmony_ci 2024-11-22 06:45:10 +00:00 committed by Gitee
commit 4e46cb7b2a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1262,6 +1262,16 @@ declare namespace userAuth {
* @since 12
*/
reuseUnlockResult?: ReuseUnlockResult;
/**
* The user id to authenticate.
*
* @type { ?number }
* @syscap SystemCapability.UserIAM.UserAuth.Core
* @systemapi Hide this for inner system use.
* @since 16
*/
userId?: number;
}
/**
@ -1324,6 +1334,17 @@ declare namespace userAuth {
* @since 10
*/
windowMode?: WindowModeType;
/**
* Display the authentication dialog in modal application mode. This mode is supported only on PC. Without this
* parameter or on other kind of devices, the authentication dialog would be displayed in modal system mode.
*
* @type { ?Context }
* @syscap SystemCapability.UserIAM.UserAuth.Core
* @atomicservice
* @since 16
*/
uiContext?: Context;
}
/**