Obtains information about all wants with **extension** set to **fileAcesss** in the system. A want is a basic communication component used to start services. This API uses a promise to return the result.
Obtains information about all wants with **extension** set to **fileAccess** in the system. A want is a basic communication component used to start services. This API uses a promise to return the result.
Obtains information about all wants with **extension** set to **fileAcesss** in the system. A want is a basic communication component used to start services. This API uses an asynchronous callback to return the result.
Obtains information about all wants with **extension** set to **fileAccess** in the system. A want is a basic communication component used to start services. This API uses an asynchronous callback to return the result.
console.error("createFileAccessHelper interface returns an undefined object");
console.error("createFileAccessHelper interface returns an undefined object");
...
@@ -167,8 +167,7 @@ Synchronously creates a **Helper** object to connect to all file management serv
...
@@ -167,8 +167,7 @@ Synchronously creates a **Helper** object to connect to all file management serv
getRoots( ) : Promise<RootIterator>
getRoots( ) : Promise<RootIterator>
Obtains information about the device root nodes of the file management service type connected to the **Helper** object. This API uses a promise to return a **RootIterator** object, which
Obtains information about the device root nodes of the file management service type connected to the **Helper** object. This API uses a promise to return a **RootIterator** object, which returns [RootInfo](#rootinfo) by using [next()](#rootiteratornext).
returns [RootInfo](#rootinfo) by using [next()](#rootiteratornext).
Obtains information about the device root nodes of the file management service type connected to the **Helper** object. This API uses an asynchronous callback to return the result.
Obtains information about the device root nodes of the file management service type connected to the **Helper** object. This API uses an asynchronous callback to return the result. The callback has a **RootIterator** object, which returns [RootInfo](#rootinfo) through [next()](#rootiteratornext).
The callback has a **RootIterator** object, which returns [RootInfo](#rootinfo) through [next()](#rootiteratornext).
@@ -2339,9 +2335,9 @@ Enumerates the member types.
...
@@ -2339,9 +2335,9 @@ Enumerates the member types.
| Name | Type| Readable | Writable | Description |
| Name | Type| Readable | Writable | Description |
| ----- | ---- | ---- | ---- | ---- |
| ----- | ---- | ---- | ---- | ---- |
| number | number | Yes| Yes| The member is a number.|
| number | number | Yes| Yes| The member is a number.|
| string | string | Yes| Yes| The member is a string.|
| string | string | Yes| Yes| The member is a string.|
| boolean | boolean | Yes| Yes| The member is a Boolean value.|
| boolean | boolean | Yes| Yes| The member is a Boolean value.|
## ChangeEvent
## ChangeEvent
...
@@ -2407,7 +2403,7 @@ Defines the key information about an audio file.
...
@@ -2407,7 +2403,7 @@ Defines the key information about an audio file.
| URI | uri | File URI. |
| URI | uri | File URI. |
| DISPLAY_NAME | display_name | File name displayed. |
| DISPLAY_NAME | display_name | File name displayed. |
| DATE_ADDED | date_added | Date when the file was added. The value is the number of seconds elapsed since the Epoch time. |
| DATE_ADDED | date_added | Date when the file was added. The value is the number of seconds elapsed since the Epoch time. |
| DATE_MODIFIED | date_modified | Date when the file was last modified. The value is the number of seconds elapsed since the Epoch time. |
| DATE_MODIFIED | date_modified | Date when the file content (not the file name) was last modified. The value is the number of seconds elapsed since the Epoch time.|
| TITLE | title | Title in the file. |
| TITLE | title | Title in the file. |
| ARTIST | artist | Author of the file. |
| ARTIST | artist | Author of the file. |
| AUDIOALBUM | audio_album | Audio album. |
| AUDIOALBUM | audio_album | Audio album. |
...
@@ -2426,7 +2422,7 @@ Defines the key information about an image or video file.
...
@@ -2426,7 +2422,7 @@ Defines the key information about an image or video file.
| FILE_TYPE | file_type | Type of the file. |
| FILE_TYPE | file_type | Type of the file. |
| DISPLAY_NAME | display_name | File name displayed. |
| DISPLAY_NAME | display_name | File name displayed. |
| DATE_ADDED | date_added | Date when the file was added. The value is the number of seconds elapsed since the Epoch time. |
| DATE_ADDED | date_added | Date when the file was added. The value is the number of seconds elapsed since the Epoch time. |
| DATE_MODIFIED | date_modified | Date when the file was last modified. The value is the number of seconds elapsed since the Epoch time. |
| DATE_MODIFIED | date_modified | Date when the file content (not the file name) was last modified. The value is the number of seconds elapsed since the Epoch time.|
| TITLE | title | Title in the file. |
| TITLE | title | Title in the file. |
| DURATION | duration | Duration, in ms. |
| DURATION | duration | Duration, in ms. |
| WIDTH | width | Image width, in pixels. |
| WIDTH | width | Image width, in pixels. |
...
@@ -2447,7 +2443,7 @@ Defines the key album information.
...
@@ -2447,7 +2443,7 @@ Defines the key album information.
| FILE_TYPE | file_type | Type of the file. |
| FILE_TYPE | file_type | Type of the file. |
| ALBUM_NAME | album_name | Name of the album. |
| ALBUM_NAME | album_name | Name of the album. |
| DATE_ADDED | date_added | Date when the file was added. The value is the number of seconds elapsed since the Epoch time. |
| DATE_ADDED | date_added | Date when the file was added. The value is the number of seconds elapsed since the Epoch time. |
| DATE_MODIFIED | date_modified | Date when the file was last modified. The value is the number of seconds elapsed since the Epoch time. |
| DATE_MODIFIED | date_modified | Date when the file content (not the file name) was last modified. The value is the number of seconds elapsed since the Epoch time.|