@@ -83,8 +83,8 @@ Obtains information about the second-level album or files in asynchronous mode.
...
@@ -83,8 +83,8 @@ Obtains information about the second-level album or files in asynchronous mode.
- Parameters
- Parameters
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
| --- | --- | --- | -- |
| --- | --- | --- | -- |
| path | promise<string>| Yes| URI of the directory to query.|
| path | string | Yes| URI of the directory to query.|
| type | promise<string>| Yes| Type of the files to query. The file type can be **file**, **image**, **audio**, or **video**.|
| type | string | Yes| Type of the files to query. The file type can be **file**, **image**, **audio**, or **video**.|
| options | Object | No| The options are as follows:<br>- **dev**: See [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.<br>- **offset**: position to start the query. The value is a number.<br>- **count**: number of files to query.|
| options | Object | No| The options are as follows:<br>- **dev**: See [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.<br>- **offset**: position to start the query. The value is a number.<br>- **count**: number of files to query.|
- Return value
- Return value
...
@@ -130,8 +130,8 @@ Obtains information about the second-level album or files in asynchronous mode.
...
@@ -130,8 +130,8 @@ Obtains information about the second-level album or files in asynchronous mode.
| path | promise<string> | Yes | URI of the directory to query. |
| path | string | Yes | URI of the directory to query. |
| type | promise<string> | Yes | Type of the files to query. The file type can be **file**, **image**, **audio**, or **video**.|
| type | string | Yes | Type of the files to query. The file type can be **file**, **image**, **audio**, or **video**.|
| options | Object | No| The options are as follows:<br>- **dev**: See [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.<br>- **offset**: position to start the query. The value is a number.<br>- **count**: number of files to query.|
| options | Object | No| The options are as follows:<br>- **dev**: See [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.<br>- **offset**: position to start the query. The value is a number.<br>- **count**: number of files to query.|
| callback | AsyncCallback<[FileInfo](#fileinfo)[]> | Yes | Callback invoked to return the file information obtained. |
| callback | AsyncCallback<[FileInfo](#fileinfo)[]> | Yes | Callback invoked to return the file information obtained. |
- Error
- Error
...
@@ -167,15 +167,15 @@ Creates a file in the specified path in asynchronous mode. This API uses a promi
...
@@ -167,15 +167,15 @@ Creates a file in the specified path in asynchronous mode. This API uses a promi
- Parameters
- Parameters
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
| --- | --- | --- | -- |
| --- | --- | --- | -- |
| filename | promise<string>| Yes| Name of the file to create.|
| filename | string | Yes| Name of the file to create.|
| path | promise<string>| Yes| URI of the file to create.|
| path | string | Yes| URI of the file to create.|
| options | Object | No| The options are as follows:<br>- **dev**: See [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.|
| options | Object | No| The options are as follows:<br>- **dev**: See [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.|
- Return value
- Return value
| Type| Description|
| Type| Description|
| --- | -- |
| --- | -- |
| promise<string>| Promise used to return the URI of the file created.|
| string | Promise used to return the URI of the file created.|
- Error
- Error
| Error Info| Error Code|Description|
| Error Info| Error Code|Description|
...
@@ -211,8 +211,8 @@ Creates a file in the specified path in asynchronous mode. This API uses a callb
...
@@ -211,8 +211,8 @@ Creates a file in the specified path in asynchronous mode. This API uses a callb
| filename | promise<string> | Yes | Name of the file to create. |
| filename | string | Yes | Name of the file to create. |
| path | promise<string> | Yes | URI of the file to create. |
| path | string | Yes | URI of the file to create. |
| options | Object | No| The options are as follows:<br>- **dev**: See [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.|
| options | Object | No| The options are as follows:<br>- **dev**: See [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.|
| callback | AsyncCallback<[FileInfo](#fileinfo)[]> | Yes | Callback invoked to return the file information obtained. |
| callback | AsyncCallback<[FileInfo](#fileinfo)[]> | Yes | Callback invoked to return the file information obtained. |
...
@@ -248,9 +248,9 @@ Defines the file information returned by **getRoot()** or **listFile()**.
...
@@ -248,9 +248,9 @@ Defines the file information returned by **getRoot()** or **listFile()**.
| Name| Type| Readable| Writable| Description|
| Name| Type| Readable| Writable| Description|
| --- | -- | -- | -- | -- |
| --- | -- | -- | -- | -- |
| name | promise<string>| Yes| No| File name.|
| name | string | Yes| No| File name.|
| path | promise<string>| Yes| No| URI of the file.|
| path | string | Yes| No| URI of the file.|
| type | promise<string>| Yes| No| File type.|
| type | string | Yes| No| File type.|
| size | number | Yes| No| File size.|
| size | number | Yes| No| File size.|
| addedTime | number | Yes| No| Time when the file was scanned to the database.|
| addedTime | number | Yes| No| Time when the file was scanned to the database.|
| modifiedTime | number | Yes| No| Time when the file was modified.|
| modifiedTime | number | Yes| No| Time when the file was modified.|
...
@@ -265,4 +265,4 @@ Defines the device type.
...
@@ -265,4 +265,4 @@ Defines the device type.
| Name| Type | Readable| Writable| Description |
| Name| Type | Readable| Writable| Description |
| ------ | ------ | ---- | ---- | -------- |
| ------ | ------ | ---- | ---- | -------- |
| name | promise<string>| Yes | Yes | Device name.|