Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
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.
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)
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.