Skip to main content

Overview

Cloneable syncs data and files with its backend services. Show users the current sync status.

Network Status

CloneablePlatform provides the published networkConnected variable. Its value updates when network status changes:

Sync Status

Monitor the syncStatus variable for data and file sync changes. It has these states:

Monitor file sync status

The published numFilesToSync variable reports files still waiting to sync. It is an Int:

Get the total downloaded file count

Call getNumberOfDownloadedFiles() to get the total downloaded file count: