언어 설정

Menu
Sites
Language
Changing the functionality of Gear Fit 2 watch buttons

Is it possible to change the functionality of the side buttons on a Gear Fit 2 within your app?
And is there an ability to add a custom function for a 'double-click' or when a button is held down?

답변 바로가기

Responses

2 댓글
Mark as answer
K Johnson

Hello,

Normally, the hardware keys do only what they are designed to do, such as increase the volume or return to the previous screen. In some applications, you can assign special actions to hardware keys. For example, you can use the volume key to increase and decrease the size of the text. It can be done using key grabbing.

You may follow the steps in the link below:

https://developer.tizen.org/ko/development/guides/native-application/user-interface/efl/hardware-input-handling/grabbing-hardware-key-events?langredirect=1

You may use evas_object_smart_callback_add() function to add a callback for an event to an object. Use pressed signal for the button held-down case. Follow the link below:

https://developer.tizen.org/dev-guide/native/2.3.0/org.tizen.mobile.native.appprogramming/html/guide/ui/events_guide_evas_smart_objects.htm#evas_object_smart_callback_add

Thanks.

Dylan Goveas

Thanks for the reply, that's exactly what I was looking for!