diff --git a/api/@ohos.systemparameter.d.ts b/api/@ohos.systemparameter.d.ts index 1e20358fa7f93396a0c79eedc26adde90b30a793..f5a7973e530955f4593fcaf5c298e0db65389f24 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 * @hide */ 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;