Merge gitee.com:openharmony/interface_sdk-js into liuziwei

Change-Id: Ie8b6a74a257e291f05029001d3c8e3a52754b977
This commit is contained in:
liuziwei 2023-03-23 07:47:07 +00:00
commit 92bd03a8e4
2 changed files with 19 additions and 31 deletions

View File

@ -29,8 +29,8 @@ declare namespace overlay {
* @param { boolean } isEnabled - The value true means to enable overlay feature, and the value false means to disable overlay feature.
* @param { AsyncCallback<void> } callback - The callback of setting specified overlay module enabled state result.
* @throws { BusinessError } 401 - The parameter check failed.
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
* @throws { BusinessError } 17700033 - The specified module is not overlay module.
* @throws { BusinessError } 17700002 - The specified module name is not found.
* @throws { BusinessError } 17700033 - The specified module is not an overlay module.
* @syscap SystemCapability.BundleManager.BundleFramework.Overlay
* @since 10
*/
@ -48,9 +48,9 @@ declare namespace overlay {
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
* @throws { BusinessError } 17700002 - The specified module name is not found.
* @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module.
* @throws { BusinessError } 17700033 - The specified module is not overlay module.
* @throws { BusinessError } 17700033 - The specified module is not an overlay module.
* @syscap SystemCapability.BundleManager.BundleFramework.Overlay
* @systemapi
* @since 10
@ -63,8 +63,8 @@ declare namespace overlay {
* @param { string } moduleName - Indicates the module name of the overlay module to be queried.
* @param { AsyncCallback<OverlayModuleInfo> } callback - The callback of getting OverlayModuleInfo object.
* @throws { BusinessError } 401 - The parameter check failed.
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
* @throws { BusinessError } 17700033 - The specified module is not overlay module.
* @throws { BusinessError } 17700002 - The specified module name is not found.
* @throws { BusinessError } 17700033 - The specified module is not an overlay module.
* @syscap SystemCapability.BundleManager.BundleFramework.Overlay
* @since 10
*/
@ -76,8 +76,8 @@ declare namespace overlay {
* @param { string } targetModuleName - Indicates the target module name of the target module to be queried.
* @param { AsyncCallback<Array<OverlayModuleInfo>> } callback - The callback of getting a list of OverlayModuleInfo object.
* @throws { BusinessError } 401 - The parameter check failed.
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
* @throws { BusinessError } 17700034 - The specified module is overlay module.
* @throws { BusinessError } 17700002 - The specified module name is not found.
* @throws { BusinessError } 17700034 - The specified module is an overlay module.
* @syscap SystemCapability.BundleManager.BundleFramework.Overlay
* @since 10
*/
@ -94,9 +94,9 @@ declare namespace overlay {
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
* @throws { BusinessError } 17700002 - The specified module name is not found.
* @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module.
* @throws { BusinessError } 17700033 - The specified module is not overlay module.
* @throws { BusinessError } 17700033 - The specified module is not an overlay module.
* @syscap SystemCapability.BundleManager.BundleFramework.Overlay
* @systemapi
* @since 10
@ -114,9 +114,9 @@ declare namespace overlay {
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
* @throws { BusinessError } 17700002 - The specified module name is not found.
* @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module.
* @throws { BusinessError } 17700033 - The specified module is not overlay module.
* @throws { BusinessError } 17700033 - The specified module is not an overlay module.
* @syscap SystemCapability.BundleManager.BundleFramework.Overlay
* @systemapi
* @since 10
@ -133,9 +133,9 @@ declare namespace overlay {
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
* @throws { BusinessError } 17700034 - The specified module is overlay module.
* @throws { BusinessError } 17700035 - The specified bundle is overlay bundle.
* @throws { BusinessError } 17700002 - The specified module name is not found.
* @throws { BusinessError } 17700034 - The specified module is an overlay module.
* @throws { BusinessError } 17700035 - The specified bundle is an overlay bundle.
* @syscap SystemCapability.BundleManager.BundleFramework.Overlay
* @systemapi
* @since 10
@ -153,9 +153,9 @@ declare namespace overlay {
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
* @throws { BusinessError } 17700034 - The specified module is overlay module.
* @throws { BusinessError } 17700035 - The specified bundle is overlay bundle.
* @throws { BusinessError } 17700002 - The specified module name is not found.
* @throws { BusinessError } 17700034 - The specified module is an overlay module.
* @throws { BusinessError } 17700035 - The specified bundle is an overlay bundle.
* @syscap SystemCapability.BundleManager.BundleFramework.Overlay
* @systemapi
* @since 10

View File

@ -309,7 +309,7 @@ declare namespace userAuth {
* @deprecated since 9
* @useinstead ohos.userIAM.userAuth.AuthEvent.callback
*/
onAcquireInfo?: (module: number, acquire: number, extraInfo: AuthResult) => void;
onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void;
}
/**
@ -849,18 +849,6 @@ declare namespace userAuth {
cancel: () => void;
}
/**
* Get version information.
*
* @permission ohos.permission.ACCESS_BIOMETRIC
* @returns { number } Returns version information.
* @throws { BusinessError } 201 - Permission verification failed.
* @throws { BusinessError } 12500002 - General operation error.
* @syscap SystemCapability.UserIAM.UserAuth.Core
* @since 9
*/
function getVersion(): number;
/**
* Check whether the authentication capability is available.
*