diff --git a/en/application-dev/reference/apis/js-apis-rpc.md b/en/application-dev/reference/apis/js-apis-rpc.md index 95b60009b09bd8dee7e3a687027d94c070e1b864..fe414f5d9f4b180cc36d1dbb3c36889924d3840c 100644 --- a/en/application-dev/reference/apis/js-apis-rpc.md +++ b/en/application-dev/reference/apis/js-apis-rpc.md @@ -1,5 +1,6 @@ # RPC +This module implements communication between processes, including inter-process communication (IPC) on a single device and Remote Procedure Call (RPC) between processes of difference devices. IPC is implemented based on the Binder driver, and RPC is based on the software bus driver. > **NOTE**
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -2397,7 +2398,7 @@ Unmarshals this sequenceable object from a **MessageParcel** object. ## IRemoteBroker -Obtains a remote proxy object. +Provides the holder of a remote proxy object. ### asObject @@ -2503,7 +2504,7 @@ Obtains the interface. ### sendRequest(deprecated) > **NOTE**
-> This API is deprecated since API Version 8. You are advised to use [sendRequest8+ ](#sendrequest8). +> This API is deprecated since API Version 8. You are advised to use [sendRequest8+](#sendrequest8). sendRequest(code : number, data : MessageParcel, reply : MessageParcel, options : MessageOption): boolean @@ -2652,7 +2653,7 @@ Provides methods to implement **IRemoteObject**. ### sendRequest(deprecated) > **NOTE**
-> This API is deprecated since API Version 8. You are advised to use [sendRequest8+ ](#sendrequest8-2). +> This API is deprecated since API Version 8. You are advised to use [sendRequest8+](#sendrequest8-2). sendRequest(code : number, data : MessageParcel, reply : MessageParcel, options : MessageOption): boolean @@ -3470,7 +3471,7 @@ A constructor used to create a **RemoteObject** object. ### sendRequest(deprecated) > **NOTE**
-> This API is deprecated since API Version 8. You are advised to use [sendRequest8+ ](#sendrequest8-4). +> This API is deprecated since API Version 8. You are advised to use [sendRequest8+](#sendrequest8-4). sendRequest(code : number, data : MessageParcel, reply : MessageParcel, options : MessageOption): boolean diff --git a/en/application-dev/reference/apis/js-apis-system-cipher.md b/en/application-dev/reference/apis/js-apis-system-cipher.md index c4f862b0e3cbf448631be452f826ac395a44435c..cd4100d455e6f47f6d2600562a4d0522c885284a 100644 --- a/en/application-dev/reference/apis/js-apis-system-cipher.md +++ b/en/application-dev/reference/apis/js-apis-system-cipher.md @@ -50,7 +50,7 @@ export default { '+Enz0RzmVFh/4yk6lmqRzuEFQqhQqSZzaLq6sq2N2G0Sv2Xl3sLvqAfe2HNm2oBw\n' + 'jBpApTJ3TeneOo6Z5QIDAQAB', success: function(data) { - console.log(`handling successful:${data.text}`); + console.log(`Handling successful:${data.text}`); }, fail: function(data, code) { console.log(`### Failed to encrypt cipher.rsa ### ${code}:${data}`); @@ -83,7 +83,7 @@ export default { 'M9TORIgdH8MjIbWsGnndAkEAw9yURDaorE8IYPLF2IEn09g1uzvWPs3phDb6smVx\n' + '8GfqIdUNf+aCG5TZK/kXBF1sqcsi7jXMAf4jBlejVbSVZg==', success: function(data) { - console.log(`handling successful:${data.text}`); + console.log(`Handling successful:${data.text}`); }, fail: function(data, code) { console.log(`### Failed to encrypt cipher.rsa ### ${code}:${data}`); @@ -130,13 +130,13 @@ export default { action: 'encrypt', // Text to be encrypted. text: 'hello', - // Base64-encoded key used for encryption. + // Base64-encoded key. key: 'NDM5Qjk2UjAzMEE0NzVCRjlFMkQwQkVGOFc1NkM1QkQ=', transformation: 'AES/CBC/PKCS5Padding', ivOffset: '0', ivLen: '16', success: function(data) { - console.log(`handling successful:${data.text}`); + console.log(`Handling successful:${data.text}`); }, fail: function(data, code) { console.log(`### Failed to encrypt cipher.rsa ### ${code}:${data}`); @@ -150,13 +150,13 @@ export default { action: 'decrypt', // Text to be decrypted, which is binary text encoded in Base64. text: '1o0kf2HXwLxHkSh5W5NhzA==', - // Base64-encoded key used for decryption. + // Base64-encoded key. key: 'NDM5Qjk2UjAzMEE0NzVCRjlFMkQwQkVGOFc1NkM1QkQ=', transformation: 'AES/CBC/PKCS5Padding', ivOffset: '0', ivLen: '16', success: function(data) { - console.log(`handling success:${data.text}`); + console.log(`Handling successful:${data.text}`); }, fail: function(data, code) { console.log(`### Failed to decrypt cipher.rsa ### ${code}:${data}`);