diff --git a/en/application-dev/ability/fa-dataability.md b/en/application-dev/ability/fa-dataability.md index b9488903ccc6369a0caa56fcb7493c08e611a66b..c2a72cef31d5416c5a062689bac28af2d7e41c5b 100644 --- a/en/application-dev/ability/fa-dataability.md +++ b/en/application-dev/ability/fa-dataability.md @@ -9,19 +9,19 @@ Data ability providers can customize data access-related APIs such as data inser **Table 1** Data ability lifecycle APIs |API|Description| |:------|:------| -|onInitialized|Called during ability initialization to initialize the relational database (RDB).| -|update|Updates data in the database.| -|query|Queries data in the database.| -|delete|Deletes one or more data records from the database.| -|normalizeUri|Normalizes the URI. A normalized URI applies to cross-device use, persistence, backup, and restore. When the context changes, it ensures that the same data item can be referenced.| -|batchInsert|Inserts multiple data records into the database.| -|denormalizeUri|Converts a normalized URI generated by **normalizeUri** into a denormalized URI.| -|insert|Inserts a data record into the database.| -|openFile|Opens a file.| -|getFileTypes|Obtains the MIME type of a file.| -|getType|Obtains the MIME type matching the data specified by the URI.| -|executeBatch|Operates data in the database in batches.| -|call|Calls a custom API.| +|onInitialized?(info: AbilityInfo): void|Called during ability initialization to initialize the relational database (RDB).| +|update?(uri: string, valueBucket: rdb.ValuesBucket, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback\): void|Updates data in the database.| +|query?(uri: string, columns: Array\, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback\): void|Queries data in the database.| +|delete?(uri: string, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback\): void|Deletes one or more data records from the database.| +|normalizeUri?(uri: string, callback: AsyncCallback\): void|Normalizes the URI. A normalized URI applies to cross-device use, persistence, backup, and restore. When the context changes, it ensures that the same data item can be referenced.| +|batchInsert?(uri: string, valueBuckets: Array\, callback: AsyncCallback\): void|Inserts multiple data records into the database.| +|denormalizeUri?(uri: string, callback: AsyncCallback\): void|Converts a normalized URI generated by **normalizeUri** into a denormalized URI.| +|insert?(uri: string, valueBucket: rdb.ValuesBucket, callback: AsyncCallback\): void|Inserts a data record into the database.| +|openFile?(uri: string, mode: string, callback: AsyncCallback\): void|Opens a file.| +|getFileTypes?(uri: string, mimeTypeFilter: string, callback: AsyncCallback\>): void|Obtains the MIME type of a file.| +|getType?(uri: string, callback: AsyncCallback\): void|Obtains the MIME type matching the data specified by the URI.| +|executeBatch?(ops: Array\, callback: AsyncCallback\>): void|Operates data in the database in batches.| +|call?(method: string, arg: string, extras: PacMap, callback: AsyncCallback\): void|Calls a custom API.| ## How to Develop diff --git a/en/application-dev/ability/stage-ability.md b/en/application-dev/ability/stage-ability.md index 4dfe6cf0e1ef001bdd72d4ae362baadc5d155d63..b9449f16a0651089f68000ccf2bbe0da3b0355ad 100644 --- a/en/application-dev/ability/stage-ability.md +++ b/en/application-dev/ability/stage-ability.md @@ -249,7 +249,7 @@ var want = { context.startAbility(want).then((data) => { console.log("Succeed to start remote ability with data: " + JSON.stringify(data)) }).catch((error) => { - console.error("Failed to start remote ability with error: "+ JSON.stringify(error)) + console.error("Failed to start remote ability with error: " + JSON.stringify(error)) }) ``` Obtain the ID of a specified device from `DeviceManager`. The sample code is as follows: diff --git a/en/application-dev/media/video-playback.md b/en/application-dev/media/video-playback.md index c0a0163b000e1d2a87081476307a153e0fdd723c..3aab853a699f7ac9b2d9fe2a6f7da9bf03d994cd 100644 --- a/en/application-dev/media/video-playback.md +++ b/en/application-dev/media/video-playback.md @@ -43,7 +43,7 @@ The full video playback process includes creating an instance, setting the URL, For details about the **url** types supported by **VideoPlayer**, see the [url attribute](../reference/apis/js-apis-media.md#videoplayer_attributes). -For details about how to create an XComponent, see [XComponent](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/arkui-ts/ts-basic-components-xcomponent.md). +For details about how to create an XComponent, see [XComponent]( ../reference/arkui-ts/ts-basic-components-xcomponent.md). *Note: **setSurface** must be called after the URL is set but before **prepare** is called.