| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|删除|类名:KVStore;
方法or属性:on(event: 'dataChange', type: SubscribeType, observer: Callback\): void;|NA|@ohos.data.distributedData.d.ts|
|新增|NA|类名:SingleKVStore;
方法or属性:off(event: 'dataChange', listener?: Callback\): void;|@ohos.data.distributedData.d.ts|
|新增|NA|类名:DeviceKVStore;
方法or属性:off(event: 'dataChange', listener?: Callback\): void;|@ohos.data.distributedData.d.ts|
| 新增 | NA | 类名:DataObject;
方法or属性:setSessionId(sessionId: string, callback: AsyncCallback): void; | @ohos.data.distributedDataObject.d.ts |
| 新增 | NA | 类名:DataObject;
方法or属性:setSessionId(sessionId?: string): Promise; | @ohos.data.distributedDataObject.d.ts |
|新增|NA|类名:DataObject;
方法or属性:on(type: 'change', callback: Callback\<{ sessionId: string, fields: Array\ }>): void;|@ohos.data.distributedDataObject.d.ts|
|新增|NA|类名:DataObject;
方法or属性:on(type: 'status',
callback: Callback\<{ sessionId: string, networkId: string, status: 'online' \| 'offline' }>): void;|@ohos.data.distributedDataObject.d.ts|
|新增|NA|类名:DataObject;
方法or属性:off(type: 'change', callback?: Callback\<{ sessionId: string, fields: Array\ }>): void;|@ohos.data.distributedDataObject.d.ts|
|新增|NA|类名:DataObject;
方法or属性:off(type: 'status',
callback?: Callback\<{ sessionId: string, deviceId: string, status: 'online' \| 'offline' }>): void;|@ohos.data.distributedDataObject.d.ts|
|新增|NA|类名:DataShareExtensionAbility;
方法or属性:context?: ExtensionContext;|@ohos.application.DataShareExtensionAbility.d.ts|
|新增|NA|类名:DataShareExtensionAbility;
方法or属性:onCreate?(want: Want, callback: AsyncCallback\): void;|@ohos.application.DataShareExtensionAbility.d.ts|
|新增|NA|类名:DataShareExtensionAbility;
方法or属性:insert?(uri: string, valueBucket: ValuesBucket, callback: AsyncCallback\): void;|@ohos.application.DataShareExtensionAbility.d.ts|
|新增|NA|类名:DataShareExtensionAbility;
方法or属性:update?(uri: string, predicates: dataSharePredicates.DataSharePredicates, valueBucket: ValuesBucket,
callback: AsyncCallback\): void;|@ohos.application.DataShareExtensionAbility.d.ts|
|新增|NA|类名:DataShareExtensionAbility;
方法or属性:delete?(uri: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback\): void;|@ohos.application.DataShareExtensionAbility.d.ts|
|新增|NA|类名:DataShareExtensionAbility;
方法or属性:query?(uri: string, predicates: dataSharePredicates.DataSharePredicates, columns: Array\,
callback: AsyncCallback\