PackageTransferWatcher - stingray.PackageTransferWatcher namespace reference - Stingray Lua API Reference

stingray.PackageTransferWatcher namespace reference

Description

Interface for monitoring streaming installs on Xbox One.

Functions

Parameters

watch_id :

integer?

Id returned by stingray.PackageTransferWatcher.watch_specific_chunks

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

boolean

True if completed

You can call this with a watch_id to get information of specific chunks or you can call this without any parameters to know if the entire transfer is finished.

Parameters
This function does not accept any parameters.
Returns
This function does not return any values.
Parameters
This function does not accept any parameters.
Returns
This function does not return any values.

This must be called before the rest of the interface can be used.

Call stingray.PackageTransferWatcher.destroy when you are finished with the install to free up system resources.

Parameters
This function does not accept any parameters.
Returns

integer*

Completed chunks

The * notation indicates that there may be zero or more instances of the specified type.

Note that a chunk can be returned multiple times if it is watched with stingray.PackageTransferWatcher.watch_specific_chunks.

Parameters

watch_id :

integer?

Id returned by stingray.PackageTransferWatcher.watch_specific_chunks

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

integer

Completion percentage, from 0 to 100

You can call this with a watch_id to get the progress of specific chunks or you can call this without any parameters to get information on all chunks.

Parameters

watch_id :

integer

Id returned by stingray.PackageTransferWatcher.watch_specific_chunks

Returns
This function does not return any values.
Parameters
This function does not accept any parameters.
Returns

integer

Will be one of the stingray.TransferStatus constants.

Note that this should be called only when needed, at most once per frame.

Parameters

chunks :

integer+

One or more chunks to watch

The + notation indicates that there may be one or more instances of the specified type.
Returns

integer

Id of the watched group, used when calling other parts of the PackageTransferWatcher interface. Referred to as watch_id

Use stingray.PackageTransferWatcher.stop_watching_chunks to stop wathcing the specified chunks when it's no longer needed.