Event Handling
Show installer progress to user
The game installer provides two types of event:
FileProgress
indicates the name, type, and number of files in progress.ByteProgress
indicates the size of files processed / the size of all files in bytes.
And there are two ways to register an event handler:
Pass
IProgress<>
interface to the method of the game installer.Register event handler. (will be invoked on the current
SynchronizationContext
, so it is safe to access UI components)
If the IProgress<>
interface is passed to the method, any event handlers will be ignored.
Example (with IProgress)
Example (with Event handler)
Last updated