Class: $.BulkDownloadDelegate
- Inherits:
-
Communications.SyncDelegate
-
Communications.SyncDelegate
-
Overview
Responds to sync requests
Instance Member Summary collapse
- _colors as Lang.Array<Lang.Number>
- _colorsDownloaded as Lang.Number
- _colorsToDownload as Lang.Number
Instance Method Summary collapse
-
downloadColor(colorId as Lang.Number) as Void
Initiate a request to download an image of the given color.
-
initialize()
Constructor.
-
isSyncNeeded() as Lang.Boolean
Called by the system to determine if a sync is needed.
-
onDownloadComplete(code as Lang.Number) as Void
Handle download completion.
-
onStartSync() as Void
Called by the system when starting a bulk sync.
-
onStopSync() as Void
Called by the system when finishing a bulk sync.
-
startNextDownload() as Void
Start processing the next download, or terminate syncing.
Instance Attribute Details
var _colors as Lang.Array<Lang.Number>
var _colorsDownloaded as Lang.Number
var _colorsToDownload as Lang.Number
Instance Method Details
downloadColor(colorId as Lang.Number) as Void
Initiate a request to download an image of the given color
initialize()
Constructor
isSyncNeeded() as Lang.Boolean
Called by the system to determine if a sync is needed
onDownloadComplete(code as Lang.Number) as Void
Handle download completion
onStartSync() as Void
Called by the system when starting a bulk sync.
onStopSync() as Void
Called by the system when finishing a bulk sync.
startNextDownload() as Void
Start processing the next download, or terminate syncing.