Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Is there a way to set up a timer?

$
0
0

I have an app that is refreshing data where I get a message from a server every second. I want to set up a way to detect if a message hasn't arrived in over a minute.

My thought process was to have a timer stop and restart when a message comes in, and if the timer reaches 60 seconds I display a message showing connection is interrupted.

Any ideas or thoughts on how I could accomplish this?


Viewing all articles
Browse latest Browse all 204402

Trending Articles