Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Contributor
aadrat
Posts: 25
Registered: ‎11-10-2010

Blackberry API functionality for idle webworks widget.

Hi,

 

Does Blackberry API provides any functionality to close a webworks widget if it is idle for a period of time?

Solution with example will be very helpful.

 

--Thanks

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,693
Registered: ‎10-16-2008
My Carrier: Rogers

Re: Blackberry API functionality for idle webworks widget.

Are you wanting to track if the application is idle for a period of time, or the device in general?

 

If it is your application, you should be able to track the user's interaction and reset a background timer.. when the timer times out, you can force the application to exit using the blackberry.app API

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Contributor
aadrat
Posts: 25
Registered: ‎11-10-2010

Re: Blackberry API functionality for idle webworks widget.

Yes it is for application. But track how can I track the user's interaction and reset a background timer?

Please use plain text.
Contributor
aadrat
Posts: 25
Registered: ‎11-10-2010

Re: Blackberry API functionality for idle webworks widget.

Let me elaborate my query here. How to set idle time for webworks widget application? And if its going to be a javascript function then how it will be called from all the screens?

 

--Thanks

Please use plain text.