From b3d3f9e657c41b04fb0c1e4869a12a73abcc6f3b Mon Sep 17 00:00:00 2001 From: guowei Date: Fri, 12 Sep 2025 08:50:10 +0000 Subject: [PATCH 1/3] =?UTF-8?q?settings=E6=8E=A5=E5=8F=A3context=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guowei --- api/@ohos.settings.d.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/api/@ohos.settings.d.ts b/api/@ohos.settings.d.ts index a6324e71d8..f31ba3cdc8 100644 --- a/api/@ohos.settings.d.ts +++ b/api/@ohos.settings.d.ts @@ -1051,7 +1051,7 @@ declare namespace settings { /** * Get value from settingsdata * - * @param { Context } context - Indicates the Context or dataAbilityHelper used to access + * @param { Context } context - Application context. Only UIAbilityContext and ExtensionContext are supported. * the database. * @param { string } name - Indicates the name of the character string. * @param { AsyncCallback } [callback] - The callback of getValue result. @@ -1063,7 +1063,7 @@ declare namespace settings { /** * Get value from settingsdata - * @param { Context } context - Indicates the Context or dataAbilityHelper used to access + * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. * the database. * @param { string } name - Indicates the name of the character string. * @returns { Promise } Returns the value of the character string in the domain if any is found; returns {@code @@ -1078,7 +1078,7 @@ declare namespace settings { * Get value from settingsdata * [USER_SECURE] domain need ohos.permission.MANAGE_SECURE_SETTINGS permission. * - * @param { Context } context - Indicates the Context used to access the database. + * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } domainName - Indicates the name of the domain name to set. * @returns { Promise } Returns the value of the character string in the domain if any is found; returns {@code @@ -1127,7 +1127,7 @@ declare namespace settings { * Set settingsdata value. * * @permission ohos.permission.MANAGE_SETTINGS - * @param { Context } context - Indicates Context or dataAbilityHelper instance. + * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string. * @param { AsyncCallback } [callback] - The callback of setValue result. @@ -1141,7 +1141,7 @@ declare namespace settings { * Set settingsdata value. * * @permission ohos.permission.MANAGE_SETTINGS - * @param { Context } context - Indicates Context or dataAbilityHelper instance. + * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string. * @returns { Promise } Returns {@code true} if the operation is successful; returns {@code false} otherwise. @@ -1157,7 +1157,7 @@ declare namespace settings { * [USER_SECURE] domain need ohos.permission.MANAGE_SECURE_SETTINGS permission. * * @permission ohos.permission.MANAGE_SECURE_SETTINGS or ohos.permission.MANAGE_SETTINGS - * @param { Context } context - Indicates Context instance. + * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string. * @param { string } domainName - Indicates the name of the domain name to set. @@ -1238,7 +1238,7 @@ declare namespace settings { /** * Get value from settingsdata(synchronous method) * - * @param { Context } context - Indicates Context or dataAbilityHelper instance + * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } defValue - Indicates the default value of the character string. * @returns { string } Returns settingsdata value. @@ -1252,7 +1252,7 @@ declare namespace settings { * Get value from settingsdata(synchronous method). * [USER_SECURE] domain need ohos.permission.MANAGE_SECURE_SETTINGS permission. * - * @param { Context } context - Indicates Context instance + * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } defValue - Indicates the default value of the character string. * @param { string } domainName - Indicates the name of the domain name to set. @@ -1283,7 +1283,7 @@ declare namespace settings { * Set settingsdata value(synchronous method) * * @permission ohos.permission.MANAGE_SETTINGS - * @param { Context } context - Indicates Context or dataAbilityHelper instance. + * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string. * @returns { boolean } Returns {@code true} if the operation is successful; returns {@code false} otherwise. @@ -1299,7 +1299,7 @@ declare namespace settings { * [USER_SECURE] domain need ohos.permission.MANAGE_SECURE_SETTINGS permission. * * @permission ohos.permission.MANAGE_SECURE_SETTINGS or ohos.permission.MANAGE_SETTINGS - * @param { Context } context - Indicates Context instance. + * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string. * @param { string } domainName - Indicates the name of the domain name to set. @@ -1315,7 +1315,7 @@ declare namespace settings { * Monitor registration key(synchronous method) * [USER_SECURE] domain need ohos.permission.MANAGE_SECURE_SETTINGS permission. * - * @param { Context } context - Indicates Context instance. + * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } domainName - Indicates the name of the domain name to set. * @param { AsyncCallback } observer - callback when monitored key value is changed. @@ -1330,7 +1330,7 @@ declare namespace settings { * Monitor unregister key(synchronous method) * [USER_SECURE] domain need ohos.permission.MANAGE_SECURE_SETTINGS permission. * - * @param { Context } context - Indicates Context instance. + * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } domainName - Indicates the name of the domain name to set. * @returns { boolean } Returns {@code true} if the operation is successful; returns {@code false} otherwise. @@ -1343,7 +1343,7 @@ declare namespace settings { /** * Open the network manager settings page. * - * @param { Context } context - Indicates Context instance. + * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 14800000 - Parameter error. * @throws { BusinessError } 14800010 - Original service error. -- Gitee From a728b28eb0949b57468ed464ff108a5be82433d4 Mon Sep 17 00:00:00 2001 From: guowei Date: Fri, 12 Sep 2025 09:01:21 +0000 Subject: [PATCH 2/3] =?UTF-8?q?settings=E6=8E=A5=E5=8F=A3context=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guowei --- api/@ohos.settings.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/api/@ohos.settings.d.ts b/api/@ohos.settings.d.ts index f31ba3cdc8..3233fd8b89 100644 --- a/api/@ohos.settings.d.ts +++ b/api/@ohos.settings.d.ts @@ -1078,7 +1078,7 @@ declare namespace settings { * Get value from settingsdata * [USER_SECURE] domain need ohos.permission.MANAGE_SECURE_SETTINGS permission. * - * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. + * @param { Context } context - Application context. Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } domainName - Indicates the name of the domain name to set. * @returns { Promise } Returns the value of the character string in the domain if any is found; returns {@code @@ -1127,7 +1127,7 @@ declare namespace settings { * Set settingsdata value. * * @permission ohos.permission.MANAGE_SETTINGS - * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. + * @param { Context } context - Application context. Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string. * @param { AsyncCallback } [callback] - The callback of setValue result. @@ -1141,7 +1141,7 @@ declare namespace settings { * Set settingsdata value. * * @permission ohos.permission.MANAGE_SETTINGS - * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. + * @param { Context } context - Application context. Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string. * @returns { Promise } Returns {@code true} if the operation is successful; returns {@code false} otherwise. @@ -1157,7 +1157,7 @@ declare namespace settings { * [USER_SECURE] domain need ohos.permission.MANAGE_SECURE_SETTINGS permission. * * @permission ohos.permission.MANAGE_SECURE_SETTINGS or ohos.permission.MANAGE_SETTINGS - * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. + * @param { Context } context - Application context. Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string. * @param { string } domainName - Indicates the name of the domain name to set. @@ -1238,7 +1238,7 @@ declare namespace settings { /** * Get value from settingsdata(synchronous method) * - * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. + * @param { Context } context - Application context. Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } defValue - Indicates the default value of the character string. * @returns { string } Returns settingsdata value. @@ -1252,7 +1252,7 @@ declare namespace settings { * Get value from settingsdata(synchronous method). * [USER_SECURE] domain need ohos.permission.MANAGE_SECURE_SETTINGS permission. * - * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. + * @param { Context } context - Application context. Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } defValue - Indicates the default value of the character string. * @param { string } domainName - Indicates the name of the domain name to set. @@ -1283,7 +1283,7 @@ declare namespace settings { * Set settingsdata value(synchronous method) * * @permission ohos.permission.MANAGE_SETTINGS - * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. + * @param { Context } context - Application context. Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string. * @returns { boolean } Returns {@code true} if the operation is successful; returns {@code false} otherwise. @@ -1299,7 +1299,7 @@ declare namespace settings { * [USER_SECURE] domain need ohos.permission.MANAGE_SECURE_SETTINGS permission. * * @permission ohos.permission.MANAGE_SECURE_SETTINGS or ohos.permission.MANAGE_SETTINGS - * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. + * @param { Context } context - Application context. Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string. * @param { string } domainName - Indicates the name of the domain name to set. @@ -1315,7 +1315,7 @@ declare namespace settings { * Monitor registration key(synchronous method) * [USER_SECURE] domain need ohos.permission.MANAGE_SECURE_SETTINGS permission. * - * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. + * @param { Context } context - Application context. Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } domainName - Indicates the name of the domain name to set. * @param { AsyncCallback } observer - callback when monitored key value is changed. @@ -1330,7 +1330,7 @@ declare namespace settings { * Monitor unregister key(synchronous method) * [USER_SECURE] domain need ohos.permission.MANAGE_SECURE_SETTINGS permission. * - * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. + * @param { Context } context - Application context. Only UIAbilityContext and ExtensionContext are supported. * @param { string } name - Indicates the name of the character string. * @param { string } domainName - Indicates the name of the domain name to set. * @returns { boolean } Returns {@code true} if the operation is successful; returns {@code false} otherwise. -- Gitee From fda2dad68ddeba2cad5efe0e78b9f4bb0ab04ade Mon Sep 17 00:00:00 2001 From: guowei Date: Fri, 12 Sep 2025 09:06:39 +0000 Subject: [PATCH 3/3] =?UTF-8?q?settings=E6=8E=A5=E5=8F=A3context=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guowei --- api/@ohos.settings.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.settings.d.ts b/api/@ohos.settings.d.ts index 3233fd8b89..410f92e24d 100644 --- a/api/@ohos.settings.d.ts +++ b/api/@ohos.settings.d.ts @@ -1063,7 +1063,7 @@ declare namespace settings { /** * Get value from settingsdata - * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. + * @param { Context } context - Application context. Only UIAbilityContext and ExtensionContext are supported. * the database. * @param { string } name - Indicates the name of the character string. * @returns { Promise } Returns the value of the character string in the domain if any is found; returns {@code @@ -1343,7 +1343,7 @@ declare namespace settings { /** * Open the network manager settings page. * - * @param { Context } context - Application context.Only UIAbilityContext and ExtensionContext are supported. + * @param { Context } context - Application context. Only UIAbilityContext and ExtensionContext are supported. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 14800000 - Parameter error. * @throws { BusinessError } 14800010 - Original service error. -- Gitee