You can call it anywhere you like and multiple times. However as you can see from the code you need to include all users in each call:
B4X:
Public Sub SetAutoRefresh(users As List, IntervalMinutes As Double)
AutoRefreshUsers = users
autoRefreshTimer.Interval = IntervalMinutes * DateTime.TicksPerMinute
autoRefreshTimer.Enabled = True
AutoRefresh_Tick
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.