Lines Matching refs:value

20  * @brief Provides APIs for processing data in the form of key-value (KV) pairs.
22 * The key is of the string type, and the value can be a number, a string, a boolean value.
104 * @brief Obtains the integer value in a Preferences object based on the given key.
107 * @param key Pointer to the key of the value to obtain.
108 * @param value Pointer to the value obtained.
118 int OH_Preferences_GetInt(OH_Preferences *preference, const char *key, int *value);
121 * @brief Obtains the Boolean value in a Preferences object based on the given key.
124 * @param key Pointer to the key of the value to obtain.
125 * @param value Pointer to the Boolean value obtained.
135 int OH_Preferences_GetBool(OH_Preferences *preference, const char *key, bool *value);
138 * @brief Obtains the string value in a Preferences object based on the given key.
141 * @param key Pointer to the key of the value to obtain.
142 * @param value Double pointer to the value obtained in an char * array. Release {@Link OH_Preferences_FreeString} the
154 int OH_Preferences_GetString(OH_Preferences *preference, const char *key, char **value, uint32_t *valueLen);
170 * @param value Value to set.
179 int OH_Preferences_SetInt(OH_Preferences *preference, const char *key, int value);
182 * @brief Sets a Boolean value in a Preferences object.
186 * @param value Boolean value to set.
195 int OH_Preferences_SetBool(OH_Preferences *preference, const char *key, bool value);
202 * @param value Point to string to set.
211 int OH_Preferences_SetString(OH_Preferences *preference, const char *key, const char *value);