Using URL::OpenStreamProgressCallback


Hey all.
Could anyone give me an example of using the URL::OpenStreamProgressCallback callback function in conjunction with the URL::createInputStream function?
I’m using this function to download a zip file and I want to provide the user with updates on the downloads progress, however I can’t get my head around how to do it.