Voting: 
Vote up!
0 Votes
1 Replies
Unanswered

How do we handle Power button press (Long Press, double press , Single Press)?

Question asked by Sambit Kumar Mishra on Jul 03, 2017 00:35 EDT

The requirement is to create a Panic Button App: 1. Click of power button should trigger some event 2. Even when the app is in background 3. For all platforms - android, iOS, Windows Can it done through FFI only?  For native android: https://stackoverflow.com/questions/8940922/activate-an-application-when-a-power-button-is-clicked   

Vote up!
0 votes
Vote down!

Hi Sambit,

You can use the Gesture API s to achieve your objective.

For more information on this, kindly go to the following link.

http://docs.kony.com/konylibrary/visualizer/viz_widget_prog_guide/Default.htm#GestureAPI.htm?Highlight=gestures

http://docs.kony.com/konylibrary/visualizer/viz_api_dev_guide/Default.htm#gestures.htm?Highlight=gesture

If this is not your requirement, kindly get back to us.

Thank you
Rashmi Menon

Customer Success Engineering

Replied by: Jul 04, 2017 08:24 EDT
Gold