mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 01:11:35 +00:00
!14332 preferences sync api
Merge pull request !14332 from 李芮/preferences_js_sdk
This commit is contained in:
commit
8f09b38c5c
11
api/@ohos.data.preferences.d.ts
vendored
11
api/@ohos.data.preferences.d.ts
vendored
@ -1706,6 +1706,17 @@ declare namespace preferences {
|
||||
*/
|
||||
flush(): Promise<void>;
|
||||
|
||||
/**
|
||||
* Asynchronously saves the {@link Preferences} object to the file.
|
||||
*
|
||||
* @throws { BusinessError } 15500000 - Inner error.
|
||||
* @syscap SystemCapability.DistributedDataManager.Preferences.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 14
|
||||
*/
|
||||
flushSync(): void;
|
||||
|
||||
/**
|
||||
* Registers an observer to listen for the change of a {@link Preferences} object.
|
||||
*
|
||||
|
@ -409,6 +409,16 @@ declare namespace sendablePreferences {
|
||||
*/
|
||||
flush(): Promise<void>;
|
||||
|
||||
/**
|
||||
* Flushes the {@link Preferences} object to the file.
|
||||
*
|
||||
* @throws { BusinessError } 15500000 - Inner error.
|
||||
* @syscap SystemCapability.DistributedDataManager.Preferences.Core
|
||||
* @atomicservice
|
||||
* @since 14
|
||||
*/
|
||||
flushSync(): void;
|
||||
|
||||
/**
|
||||
* Registers an observer to listen for the change of a {@link Preferences} object.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user