Lines Matching refs:sync
3 …dule provides the device-cloud sync capabilities for applications. You can use the APIs to start o…
18 Enumerates the device-cloud sync states.
22 …If a sync progress event listener is registered for an application, a callback will be invoked to …
39 Enumerates the device-cloud sync errors.
41 …th the mobile network and Wi-Fi are unavailable during sync. If either network is available, sync …
42 - During the sync process, if the battery level is lower than 15% in non-charging scenarios, **BATT…
43 - When sync is being triggered, if the battery level is lower than 15% in non-charging scenarios, s…
45 …d will fail. After the local space is released, the file will be downloaded again when sync starts.
64 Represents information about the device-cloud sync progress.
72 | state | [SyncState](#syncstate) | Yes | Device-cloud sync state.|
77 Provides APIs to implement device-cloud sync of media assets in **Gallery**. Before using the APIs …
99 Registers a listener for the device-cloud sync progress.
111 | evt | string | Yes | Event type. The value is **progress**, which indicates the sync progress ev…
112 | callback | (pg: SyncProgress) => void | Yes | Callback used to return the sync progress event. T…
139 Unregisters a listener for the device-cloud sync progress.
151 | evt | string | Yes | Event type. The value is **progress**, which indicates the sync progress ev…
171 console.info("gallery sync state: " + pg.state + "error type:" + pg.error);
183 Unregisters all listeners for the device-cloud sync progress.
195 | evt | string | Yes | Event type. The value is **progress**, which indicates the sync progress ev…
224 Starts device-cloud sync. This API uses a promise to return the result.
262 console.info("start sync successfully");
264 …console.error("start sync failed with error message: " + err.message + ", error code: " + err.code…
272 Starts device-cloud sync. This API uses an asynchronous callback to return the result.
307 …console.error("start sync failed with error message: " + err.message + ", error code: " + err.code…
309 console.info("start sync successfully");
318 Stops device-cloud sync. This API uses a promise to return the result.
322 > Calling **stop** will stop the sync process. To resume the sync, call [start](#start).
353 console.info("stop sync successfully");
355 …console.error("stop sync failed with error message: " + err.message + ", error code: " + err.code);
363 Stops device-cloud sync. This API uses an asynchronous callback to return the result.
367 > Calling **stop** will stop the sync process. To resume the sync, call [start](#start).
399 …console.error("stop sync failed with error message: " + err.message + ", error code: " + err.code);
401 console.info("stop sync successfully");
482 | evt | string | Yes | Event type. The value is **progress**, which indicates the sync progress ev…
755 Provides APIs for the file manager application to perform device-cloud sync of the files stored in …
817 Registers a listener for the device-cloud sync progress.
829 | event | string | Yes | Event type. The value is **progress**, which indicates the sync progress …
830 | callback | Callback\<[SyncProgress](#syncprogress)> | Yes | Callback used to return the sync pro…
848 console.info("file sync state: " + pg.state + "error type:" + pg.error);
858 Unregisters a listener for the device-cloud sync progress.
870 | event | string | Yes | Event type. The value is **progress**, which indicates the sync progress …
871 | callback | Callback\<[SyncProgress](#syncprogress)> | No | Callback for the sync progress event…
890 console.info("file sync state: " + pg.state + "error type:" + pg.error);
902 Starts device-cloud sync of a file in the Drive Kit. This API uses a promise to return the result.
937 console.info("file sync state: " + pg.state + "error type:" + pg.error);
943 console.info("start sync successfully");
945 …console.error("start sync failed with error message: " + err.message + ", error code: " + err.code…
953 Starts device-cloud sync of a file in the Drive Kit. This API uses an asynchronous callback to retu…
989 …console.error("start sync failed with error message: " + err.message + ", error code: " + err.code…
991 console.info("start sync successfully");
1000 Stops device-cloud sync of the file in the Drive Kit. This API uses a promise to return the result.
1002 Calling **stop** will stop the sync process. To resume the sync, call [start](#start).
1034 console.info("stop sync successfully");
1036 …console.error("stop sync failed with error message: " + err.message + ", error code: " + err.code);
1044 Stops device-cloud sync of the file in the Drive Kit. This API uses an asynchronous callback to ret…
1046 Calling **stop** will stop the sync process. To resume the sync, call [start](#start).
1079 …console.error("stop sync failed with error message: " + err.message + ", error code: " + err.code);
1081 console.info("stop sync successfully");
1090 Obtains the last sync time. This API uses a promise to return the result.
1102 | Promise<number> | Promise used to return the last sync time obtained.|
1123 console.info("get last sync time successfully:"+ date);
1125 …console.error("get last sync time failed with error message: " + err.message + ", error code: " + …
1134 Obtains the last sync time. This API uses an asynchronous callback to return the result.
1146 | callback | AsyncCallback<number> | Yes | Callback used to return the last sync time obtain…
1167 …console.error("get last sync time with error message: " + err.message + ", error code: " + err.cod…
1170 console.info("get last sync time successfully:"+ date);
1234 Obtains the file sync state. This API uses a promise to return the result.
1246 | uri | Array<string> | Yes | URI of the file whose sync state is to be obtained.|
1252 | Promise<Array<FileSyncState>> | Promise used to return the sync state obtained.|
1275 console.info("get file sync state successfully" + syncStates[i]);
1278 …console.error("get file sync state failed with error message: " + err.message + ", error code: " +…
1287 Obtains the file sync state. This API uses an asynchronous callback to return the result.
1299 | uri | Array<string> | Yes | URI of the file whose sync state is to be obtained.|
1300 …ncCallback<Array<FileSyncState>> | Yes | Callback used to return the file sync state.|
1323 …console.error("get file sync state with error message: " + err.message + ", error code: " + err.co…
1326 console.info("get file sync state successfully" + syncStates[i]);
1336 Obtains the file sync status.
1512 Enumerates the device-cloud file sync states.
1522 | COMPLETED | 2 | The file sync is complete.|
1523 | STOPPED | 3 | The file sync is stopped.|