| callback | AsyncCallback\<string> | Yes| Callback used to return the normalized URI object if the Data ability supports URI normalization. If the Data ability does not support URI normalization, **null** is returned.|
| Promise\<string> | Promise used to return the normalized URI object if the Data ability supports URI normalization. If the Data ability does not support URI normalization, **null** is returned.|
Returns the normalized URI object if the Data ability supports URI normalization; returns **null** otherwise.
Converts a normalized URI generated by **DataAbilityHelper.normalizeUri(uri: string, callback: AsyncCallback\<string>)** to a denormalized one. This method uses a callback to return the result.
| uri | Read-only| string | Yes| URI object to denormalize.|
| callback | Read-only| AsyncCallback\<string> | Yes| Callback used to return the result.|
Converts a normalized URI generated by **DataAbilityHelper.normalizeUri(uri: string, callback: AsyncCallback\<string>)** to a denormalized one. This method uses a callback to return the result.
Converts a normalized URI generated by **DataAbilityHelper.normalizeUri(uri: string)** to a denormalized one. This method uses a promise to return the result.
### denormalizeUri
denormalizeUri(uri: string): Promise\<string>
- Parameters
Converts a normalized URI generated by **DataAbilityHelper.normalizeUri(uri: string)** to a denormalized one. This method uses a promise to return the result.
| uri | Read-only| string | Yes| URI of the data to delete.|
| valuesBucket | Read-only| dataAbility.DataAbilityPredicates | Yes| Filter criteria. You should define the processing logic when this parameter is **null**.|
| callback | Read-only| AsyncCallback\<number> | Yes| Callback used to return the result.|
| uri | Read-only| string | Yes| URI of the data to delete.|
| valuesBucket | Read-only| dataAbility.DataAbilityPredicates | Yes| Filter criteria. You should define the processing logic when this parameter is **null**.|
| uri | Read-only| string | Yes| URI of the data to update.|
| valuesBucket | Read-only| rdb.ValuesBucket | Yes| New values.|
| predicates | Read-only| dataAbility.DataAbilityPredicates | Yes| Filter criteria. You should define the processing logic when this parameter is **null**.|
| callback | Read-only| AsyncCallback\<number> | Yes| Callback used to return the result.|
Updates data records in the database. This method uses a callback to return the result.
| uri | Read-only| string | Yes| URI of the data to update.|
| valuesBucket | Read-only| rdb.ValuesBucket | Yes| New values.|
| predicates | Read-only| dataAbility.DataAbilityPredicates | Yes| Filter criteria. You should define the processing logic when this parameter is **null**.|
| uri | Read-only| string | Yes| URI of the data to query.|
| columns | Read-only| rdb.ValuesBucket | Yes| Columns to query. If this parameter is **null**, all columns will be queried.|
| predicates | Read-only| dataAbility.DataAbilityPredicates | Yes| Filter criteria. You should define the processing logic when this parameter is **null**.|
| callback | Read-only| AsyncCallback\<ResultSet> | Yes| Callback used to return the result.|
| uri | Readable and writable| string | Yes| URI of the data to query.|
| columns | Readable and writable| rdb.ValuesBucket | Yes| Columns to query. If this parameter is **null**, all columns will be queried.|
| predicates | Readable and writable| dataAbility.DataAbilityPredicates | Yes| Filter criteria. You should define the processing logic when this parameter is **null**.|
> The initial APIs of this module are supported since API 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
...
...
@@ -29,8 +29,8 @@ Starts an ability. This method uses a callback to return the result.
> The initial APIs of this module are supported since API 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
...
...
@@ -39,9 +39,11 @@ Called when an extension is created to initialize the service logic.