From f91db7cea4194c550ae9f1f3b003ea6a9273febe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E7=A3=8A?= Date: Tue, 22 Mar 2022 03:20:38 +0000 Subject: [PATCH] Signed-off-by: xionglei --- api/@ohos.systemparameter.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/api/@ohos.systemparameter.d.ts b/api/@ohos.systemparameter.d.ts index c0d4adafa7..18f92152a4 100644 --- a/api/@ohos.systemparameter.d.ts +++ b/api/@ohos.systemparameter.d.ts @@ -19,7 +19,7 @@ import { AsyncCallback, BusinessError } from './basic'; * The interface of system parameters class. * * @since 6 - * @syscap SystemCapability.Startup.SysInfo + * @syscap SystemCapability.Startup.SystemInfo * @systemapi Hide this for inner system use. */ declare namespace systemParameter { @@ -29,6 +29,7 @@ declare namespace systemParameter { * @param key Key of the system attribute. * @param def Default value. * @return if the parameter is empty or doesn't exist, empty string will be returned. + * @syscap SystemCapability.Startup.SystemInfo * @since 6 */ function getSync(key: string, def?: string): string; @@ -38,6 +39,7 @@ declare namespace systemParameter { * * @param key Key of the system attribute. * @param callback Callback function. + * @syscap SystemCapability.Startup.SystemInfo * @since 6 */ function get(key: string, callback: AsyncCallback): void; @@ -48,6 +50,7 @@ declare namespace systemParameter { * @param key Key of the system attribute. * @param def Default value. * @param callback Callback function. + * @syscap SystemCapability.Startup.SystemInfo * @since 6 */ function get(key: string, def: string, callback: AsyncCallback): void; @@ -58,6 +61,7 @@ declare namespace systemParameter { * @param key Key of the system attribute. * @param def Default value. * @return Promise, which is used to obtain the result asynchronously. + * @syscap SystemCapability.Startup.SystemInfo * @since 6 */ function get(key: string, def?: string): Promise; @@ -67,6 +71,7 @@ declare namespace systemParameter { * * @param key Key of the system attribute. * @param value System attribute value to set. + * @syscap SystemCapability.Startup.SystemInfo * @since 6 */ function setSync(key: string, value: string): void; @@ -77,6 +82,7 @@ declare namespace systemParameter { * @param key Key of the system attribute. * @param value System attribute value to set. * @param callback Callback function. + * @syscap SystemCapability.Startup.SystemInfo * @since 6 */ function set(key: string, value: string, callback: AsyncCallback): void; @@ -87,6 +93,7 @@ declare namespace systemParameter { * @param key Key of the system attribute. * @param value Default value. * @return Promise, which is used to obtain the result asynchronously. + * @syscap SystemCapability.Startup.SystemInfo * @since 6 */ function set(key: string, value: string): Promise; -- Gitee