Skip to main content
1-Visitor
May 9, 2019
Solved

Pause functionality for auto refresheral

  • May 9, 2019
  • 1 reply
  • 2254 views

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!!

Best answer by zyuan1

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.

1 reply

5-Regular Member
May 9, 2019

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?

Deepu1-VisitorAuthor
1-Visitor
May 9, 2019

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.

 

zyuan15-Regular MemberAnswer
5-Regular Member
May 9, 2019

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.