cpjamloki
Visitor

Terminate a network call

Is there any way using which we can terminate an ongoing network call? For eg. we are showing some images after downloading from remote server. The images are downloaded sequentially and shown one after the other.

The user in this case needs to be able to control the image download process and terminate the download process to kick off another process /event.

Please advise if there could be anything like this. Your response is highly appreciated.
Tags (1)
0 Kudos
1 REPLY 1
TheEndless
Channel Surfer

Re: Terminate a network call

If you're retrieving the images via the roUrlTransfer async methods, then you can AsyncCancel() to terminate the request.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Tags (1)
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!