Skip to main content
May 9, 2019 5:42 AM UTC
Solved

Pause functionality for auto refresheral

Im using auto refreshal for Navigation between screens. how can i implement pause functionality(button) in this usecase. and suggestions about timer.

Thanks in advance!!

zyuan1Answer
May 9, 2019 9:08 AM UTC

If you don't want to make the AutoRefresh visible and use a button to stop the auto refresh setting:

 

1. Button only has pause function: Use the button to trigger a service, the service return a False Boolean result, bind the result to AutoRefresh widget AutoRefresh property

2. Button can control both Pause and Play: make the service return True and False result in turn.

 

Auto-refresh time interval is also a property input for the widget, you can bind a service with Numeric output to it.

5 replies

May 9, 2019 5:46 AM UTC

The autoRefresh is a widget, and it has a Toggle Button and a Refresh Now button, if you didn't set it to be invisible, you can pause the refresh by turn the widget off. So what do you expect to do?

DeepuAuthor
May 9, 2019 8:59 AM UTC

In  autoRefresh widget(for particular interval ex: 10), I am using a navigation, to navigate to other screen, here i want to use a pause button.how can i do that ? how can i write a service to increase auto refreshal time.

Thanks in Advance.

 

zyuan1Answer
May 9, 2019 9:08 AM UTC

If you don't want to make the AutoRefresh visible and use a button to stop the auto refresh setting:

 

1. Button only has pause function: Use the button to trigger a service, the service return a False Boolean result, bind the result to AutoRefresh widget AutoRefresh property

2. Button can control both Pause and Play: make the service return True and False result in turn.

 

Auto-refresh time interval is also a property input for the widget, you can bind a service with Numeric output to it.