提交 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. ...@@ -56,7 +56,7 @@ If this method is called for the first time, a root directory is created.
| Type| Description| | 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** **Example**
...@@ -358,7 +358,7 @@ This method is available only to Page abilities. ...@@ -358,7 +358,7 @@ This method is available only to Page abilities.
| Type| Description| | Type| Description|
| --------------------- | ------------------------------------------ | | --------------------- | ------------------------------------------ |
| Promise\<ElementName> | Promise returned with the **ohos.bundle.ElementName** object.| | Promise\<ElementName> | Promise used to return the **ohos.bundle.ElementName** object.|
**Example** **Example**
...@@ -400,7 +400,7 @@ Obtains the name of the current process. This method uses a promise to return th ...@@ -400,7 +400,7 @@ Obtains the name of the current process. This method uses a promise to return th
| Type| Description| | Type| Description|
| ---------------- | -------------------- | | ---------------- | -------------------- |
| Promise\<string> | Promise returned with the process name.| | Promise\<string> | Promise used to return the process name.|
**Example** **Example**
......
...@@ -227,7 +227,7 @@ Creates a subscriber. This method uses a promise to return the result. ...@@ -227,7 +227,7 @@ Creates a subscriber. This method uses a promise to return the result.
**Return value** **Return value**
| Type| Description| | Type| Description|
| --------------------------------------------------------- | ---------------- | | --------------------------------------------------------- | ---------------- |
| Promise\<[CommonEventSubscriber](#commoneventsubscriber)> | Promise returned with the subscriber object.| | Promise\<[CommonEventSubscriber](#commoneventsubscriber)> | Promise used to return the subscriber object.|
**Example** **Example**
...@@ -440,7 +440,7 @@ Obtains the result code of this common event. This method uses a promise to retu ...@@ -440,7 +440,7 @@ Obtains the result code of this common event. This method uses a promise to retu
| Type| Description| | Type| Description|
| ---------------- | -------------------- | | ---------------- | -------------------- |
| Promise\<number> | Promise returned with the result code.| | Promise\<number> | Promise used to return the result code.|
**Example** **Example**
...@@ -533,7 +533,7 @@ Obtains the result data of this common event. This method uses a promise to retu ...@@ -533,7 +533,7 @@ Obtains the result data of this common event. This method uses a promise to retu
| Type| Description| | Type| Description|
| ---------------- | ------------------ | | ---------------- | ------------------ |
| Promise\<string> | Promise returned with the result data.| | Promise\<string> | Promise used to return the result data.|
**Example** **Example**
...@@ -845,7 +845,7 @@ Obtains the subscriber information. This method uses a promise to return the res ...@@ -845,7 +845,7 @@ Obtains the subscriber information. This method uses a promise to return the res
| Type| Description| | Type| Description|
| ------------------------------------------------------------ | ---------------------- | | ------------------------------------------------------------ | ---------------------- |
| Promise\<[CommonEventSubscribeInfo](#commoneventsubscribeinfo)> | Promise returned with the subscriber information.| | Promise\<[CommonEventSubscribeInfo](#commoneventsubscribeinfo)> | Promise used to return the subscriber information.|
**Example** **Example**
......
...@@ -255,7 +255,7 @@ Destroys this Page ability, with the result code and data sent to the caller. Th ...@@ -255,7 +255,7 @@ Destroys this Page ability, with the result code and data sent to the caller. Th
**Return value** **Return value**
| Type| Description| | Type| Description|
| -------------- | ----------------------- | | -------------- | ----------------------- |
| Promise\<void> | Promise returned with the result.| | Promise\<void> | Promise used to return the result.|
**Example** **Example**
...@@ -367,7 +367,7 @@ Obtains the **Want** object sent from this ability. This method uses a promise t ...@@ -367,7 +367,7 @@ Obtains the **Want** object sent from this ability. This method uses a promise t
**Return value** **Return value**
| Type| Description| | Type| Description|
| ----------------------- | ------------------------- | | ----------------------- | ------------------------- |
| Promise\<[Want](#want)> | Promise returned with the result.| | Promise\<[Want](#want)> | Promise used to return the result.|
**Example** **Example**
...@@ -429,7 +429,7 @@ Destroys this Page ability, with the result code and data sent to the caller. Th ...@@ -429,7 +429,7 @@ Destroys this Page ability, with the result code and data sent to the caller. Th
**Return value** **Return value**
| Type| Description| | Type| Description|
| -------------- | ------------------------- | | -------------- | ------------------------- |
| Promise\<void> | Promise returned with the result.| | Promise\<void> | Promise used to return the result.|
**Example** **Example**
...@@ -559,7 +559,7 @@ Disconnects this ability from a specific Service ability. This method uses a pro ...@@ -559,7 +559,7 @@ Disconnects this ability from a specific Service ability. This method uses a pro
**Return value** **Return value**
| Type| Description| | Type| Description|
| -------------- | ----------------------- | | -------------- | ----------------------- |
| Promise\<void> | Promise returned with the result.| | Promise\<void> | Promise used to return the result.|
**Example** **Example**
......
...@@ -64,7 +64,7 @@ Starts a Service ability. This method uses a promise to return the result. ...@@ -64,7 +64,7 @@ Starts a Service ability. This method uses a promise to return the result.
**Return value** **Return value**
| Type| Description| | Type| Description|
| -------------- | ------------------------- | | -------------- | ------------------------- |
| Promise\<void> | Promise returned with the result.| | Promise\<void> | Promise used to return the result.|
**Example** **Example**
...@@ -125,7 +125,7 @@ Terminates this Service ability. This method uses a promise to return the result ...@@ -125,7 +125,7 @@ Terminates this Service ability. This method uses a promise to return the result
**Return value** **Return value**
| Type| Description| | Type| Description|
| -------------- | ------------------------- | | -------------- | ------------------------- |
| Promise\<void> | Promise returned with the result.| | Promise\<void> | Promise used to return the result.|
**Example** **Example**
...@@ -275,7 +275,7 @@ Disconnects this ability from a specific Service ability. This method uses a pro ...@@ -275,7 +275,7 @@ Disconnects this ability from a specific Service ability. This method uses a pro
**Return value** **Return value**
| Type| Description| | Type| Description|
| -------------- | ------------------------- | | -------------- | ------------------------- |
| Promise\<void> | Promise returned with the result.| | Promise\<void> | Promise used to return the result.|
**Example** **Example**
......
...@@ -44,7 +44,7 @@ There are two conventions: UpperCamelCase and lowerCamelCase. ...@@ -44,7 +44,7 @@ There are two conventions: UpperCamelCase and lowerCamelCase.
| Type | Naming Style | | Type | Naming Style |
| ---------------------------------------- | ---------------------------------------- | | ---------------------------------------- | ---------------------------------------- |
| Class, struct, enumeration, union, scope name| UpperCamelCase | | 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 | | 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 (\_)| | 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.
先完成此消息的编辑!
想要评论请 注册