tsNetSetStatusCallback

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
tsNetSetStatusCallback <pCallback>
Associationstsnet
Summary

Sends a message to the given callback when status updates are available for network transfers.

EditionIndy
Introduced8.1
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
pCallback

Specify a callback message to be sent to the current card for network transfers. Set this to empty to disable status callback messages.

Example
tsNetSetStatusCallback "progressUpdate"
tsNetSetStatusCallback ""
RelatedLibrary: tsNet
Description

The message will be sent with five parameters: the identifier for the transfer, the status of the transfer, the number of bytes that have been downloaded, the total number of bytes to be downloaded, the number of bytes that have been uploaded and the total number of bytes to be uploaded. The total bytes may be 0 if the external is unable to determine this figure.

The status of the transfer can be any of: cancelled, timeout, error, uploaded, downloaded, requested, contacted, uploading or loading.

Tagsexternals