diff --git a/api/@ohos.settings.d.ts b/api/@ohos.settings.d.ts index a6324e71d89a4b097a012890d587e355aca7f370..410f92e24dd671f6df2d3d9c5bf17f6787ea38c3 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.