Class: $.BulkDownloadDelegate

Inherits:
Communications.SyncDelegate show all

Overview

Responds to sync requests

Instance Member Summary collapse

Instance Method Summary collapse

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

Parameters:

  • colorId —

    The id of the color to download

initialize()

Constructor

isSyncNeeded() as Lang.Boolean

Called by the system to determine if a sync is needed

Returns:

  • true if sync is needed, false otherwise

onDownloadComplete(code as Lang.Number) as Void

Handle download completion

Parameters:

  • code —

    The server response code or BLE error

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.


Generated Jun 9, 2026, 8:45:35 AM