提交 f3b752fb 编写于 作者: W wusongqing

updated docs

Signed-off-by: Nwusongqing <wusongqing@huawei.com>
上级 ea72980d
......@@ -56,7 +56,7 @@ If this method is called for the first time, a root directory is created.
| Type| Description|
| ---------------- | ---------------------- |
| Promise\<string> | Promise returned with the local root directory of the application.|
| Promise\<string> | Promise used to return the local root directory of the application.|
**Example**
......@@ -358,7 +358,7 @@ This method is available only to Page abilities.
| Type| Description|
| --------------------- | ------------------------------------------ |
| Promise\<ElementName> | Promise returned with the **ohos.bundle.ElementName** object.|
| Promise\<ElementName> | Promise used to return the **ohos.bundle.ElementName** object.|
**Example**
......@@ -400,7 +400,7 @@ Obtains the name of the current process. This method uses a promise to return th
| Type| Description|
| ---------------- | -------------------- |
| Promise\<string> | Promise returned with the process name.|
| Promise\<string> | Promise used to return the process name.|
**Example**
......
......@@ -227,7 +227,7 @@ Creates a subscriber. This method uses a promise to return the result.
**Return value**
| Type| Description|
| --------------------------------------------------------- | ---------------- |
| Promise\<[CommonEventSubscriber](#commoneventsubscriber)> | Promise returned with the subscriber object.|
| Promise\<[CommonEventSubscriber](#commoneventsubscriber)> | Promise used to return the subscriber object.|
**Example**
......@@ -440,7 +440,7 @@ Obtains the result code of this common event. This method uses a promise to retu
| Type| Description|
| ---------------- | -------------------- |
| Promise\<number> | Promise returned with the result code.|
| Promise\<number> | Promise used to return the result code.|
**Example**
......@@ -533,7 +533,7 @@ Obtains the result data of this common event. This method uses a promise to retu
| Type| Description|
| ---------------- | ------------------ |
| Promise\<string> | Promise returned with the result data.|
| Promise\<string> | Promise used to return the result data.|
**Example**
......@@ -845,7 +845,7 @@ Obtains the subscriber information. This method uses a promise to return the res
| Type| Description|
| ------------------------------------------------------------ | ---------------------- |
| Promise\<[CommonEventSubscribeInfo](#commoneventsubscribeinfo)> | Promise returned with the subscriber information.|
| Promise\<[CommonEventSubscribeInfo](#commoneventsubscribeinfo)> | Promise used to return the subscriber information.|
**Example**
......
......@@ -255,7 +255,7 @@ Destroys this Page ability, with the result code and data sent to the caller. Th
**Return value**
| Type| Description|
| -------------- | ----------------------- |
| Promise\<void> | Promise returned with the result.|
| Promise\<void> | Promise used to return the result.|
**Example**
......@@ -367,7 +367,7 @@ Obtains the **Want** object sent from this ability. This method uses a promise t
**Return value**
| Type| Description|
| ----------------------- | ------------------------- |
| Promise\<[Want](#want)> | Promise returned with the result.|
| Promise\<[Want](#want)> | Promise used to return the result.|
**Example**
......@@ -429,7 +429,7 @@ Destroys this Page ability, with the result code and data sent to the caller. Th
**Return value**
| Type| Description|
| -------------- | ------------------------- |
| Promise\<void> | Promise returned with the result.|
| Promise\<void> | Promise used to return the result.|
**Example**
......@@ -559,7 +559,7 @@ Disconnects this ability from a specific Service ability. This method uses a pro
**Return value**
| Type| Description|
| -------------- | ----------------------- |
| Promise\<void> | Promise returned with the result.|
| Promise\<void> | Promise used to return the result.|
**Example**
......
......@@ -64,7 +64,7 @@ Starts a Service ability. This method uses a promise to return the result.
**Return value**
| Type| Description|
| -------------- | ------------------------- |
| Promise\<void> | Promise returned with the result.|
| Promise\<void> | Promise used to return the result.|
**Example**
......@@ -125,7 +125,7 @@ Terminates this Service ability. This method uses a promise to return the result
**Return value**
| Type| Description|
| -------------- | ------------------------- |
| Promise\<void> | Promise returned with the result.|
| Promise\<void> | Promise used to return the result.|
**Example**
......@@ -275,7 +275,7 @@ Disconnects this ability from a specific Service ability. This method uses a pro
**Return value**
| Type| Description|
| -------------- | ------------------------- |
| Promise\<void> | Promise returned with the result.|
| Promise\<void> | Promise used to return the result.|
**Example**
......
......@@ -44,7 +44,7 @@ There are two conventions: UpperCamelCase and lowerCamelCase.
| Type | Naming Style |
| ---------------------------------------- | ---------------------------------------- |
| Class, struct, enumeration, union, scope name| UpperCamelCase |
| unctions (including global functions, scope functions, and member functions) | UpperCamelCase |
| Functions (including global functions, scope functions, and member functions) | UpperCamelCase |
| Global variables (including variables of the global and namespace scopes, and class static variables), local variables, function parameters, and class, struct, and union member variables | lowerCamelCase |
| Macro, constant, enumerated value, goto tag| All capitalized, separated by underscores (\_)|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册