asyncDownload

fun asyncDownload(listener: ProgressListener, savePolicy: GemSdk.EDataSavePolicy = GemSdk.EDataSavePolicy.UseDefault, allowChargedNetworks: Boolean = true): Int

Asynchronous start/resume the download of the content store product content.

Parameters

listener

Object that implements notification events associated with this operation. Cannot be empty.

savePolicy

Specify where the download will be made. Optional.

allowChargedNetworks

Flag whether to allow charged networks - defaults to true if not specified.

See also

for more information.


fun asyncDownload(savePolicy: GemSdk.EDataSavePolicy = GemSdk.EDataSavePolicy.UseDefault, allowChargedNetworks: Boolean = true, onStarted: OnStarted? = null, onProgress: OnProgress? = null, onCompleted: OnCompleted? = null, onStatusChanged: OnStatusChanged? = null): Int

Asynchronous start/resume the download of the content store product content.

Return

GemError.NoError on success

Parameters

savePolicy

Specify where the download will be made. Optional.

allowChargedNetworks

Flag whether to allow charged networks - defaults to true if not specified.

onStarted

On started trigger.

onProgress

On progress trigger.

onCompleted

On started trigger.

onStatusChanged

On status changed trigger.