提交 f32f83d5 编写于 作者: P PaDaBoo

修改错误标识

Signed-off-by: NPaDaBoo <xuejianwu@huawei.com>
上级 b73ce5b8
......@@ -27,7 +27,9 @@ getPreferences(context: Context, name: string, callback: AsyncCallback&lt;Prefer
读取指定文件,将数据加载到Preferences实例,用于数据操作,使用callback形式返回结果。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -59,7 +61,8 @@ getPreferences(context: Context, name: string): Promise&lt;Preferences&gt;
读取指定文件,将数据加载到Preferences实例,用于数据操作,使用Promise方式作为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -94,7 +97,8 @@ deletePreferences(context: Context, name: string, callback: AsyncCallback&lt;voi
从内存中移除指定文件对应的Preferences单实例,并删除指定文件及其备份文件、损坏文件。删除指定文件时,应用不允许再使用该实例进行数据操作,否则会出现数据一致性问题,使用callback方式作为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -124,7 +128,8 @@ deletePreferences(context: Context, name: string): Promise&lt;void&gt;
从内存中移除指定文件对应的Preferences单实例,并删除指定文件及其备份文件、损坏文件。删除指定文件时,应用不允许再使用该实例进行数据操作,否则会出现数据一致性问题,使用promise方式作为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -159,7 +164,8 @@ removePreferencesFromCache(context: Context, name: string, callback: AsyncCallba
此方法为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -191,7 +197,8 @@ removePreferencesFromCache(context: Context, name: string): Promise&lt;void&gt;
此方法为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -231,7 +238,8 @@ get(key: string, defValue: ValueType, callback: AsyncCallback&lt;ValueType&gt;):
此方法为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -261,7 +269,8 @@ get(key: string, defValue: ValueType): Promise&lt;ValueType&gt;
此方法为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- **参数:**
......@@ -294,7 +303,8 @@ put(key: string, value: ValueType, callback: AsyncCallback&lt;void&gt;): void
此方法为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -324,7 +334,8 @@ put(key: string, value: ValueType): Promise&lt;void&gt;
此方法为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -357,7 +368,8 @@ has(key: string, callback: AsyncCallback&lt;boolean&gt;): boolean
此方法为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -393,7 +405,8 @@ has(key: string): Promise&lt;boolean&gt;
此方法为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -427,7 +440,8 @@ delete(key: string, callback: AsyncCallback&lt;void&gt;): void
此方法为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -456,7 +470,8 @@ delete(key: string): Promise&lt;void&gt;
此方法为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -488,7 +503,8 @@ flush(callback: AsyncCallback&lt;void&gt;): void
此方法为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -516,7 +532,8 @@ flush(): Promise&lt;void&gt;
此方法为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 返回值:
......@@ -543,7 +560,8 @@ clear(callback: AsyncCallback&lt;void&gt;): void
此方法为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -571,7 +589,8 @@ clear(): Promise&lt;void&gt;
此方法为异步方法。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 返回值:
......@@ -596,7 +615,8 @@ on(type: 'change', callback: Callback&lt;{ key : string }&gt;): void
订阅数据变更者类,订阅的key的值发生变更后,在执行flush方法后,callback方法会被回调。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......@@ -622,7 +642,8 @@ off(type: 'change', callback: Callback&lt;{ key : string }&gt;): void
当不再进行订阅数据变更时,使用此接口取消订阅。
### 系统能力 ###
**系统能力**
SystemCapability.DistributedDataManager.Preferences.Core
- 参数:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册