Pebble Foundation Classes
0.2.0
C++ for Pebble
|
#include <pebble.h>
Public Attributes | |
AppFocusHandler | will_focus |
AppFocusHandler | did_focus |
There are two different focus events which take place when transitioning to and from an app being in focus. Below is an example of when these events will occur: 1) The app is launched. Once the system animation to the app has completed and the app is completely in focus, the did_focus handler is called with in_focus set to true. 2) A notification comes in and the animation to show the notification starts. The will_focus handler is called with in_focus set to false. 3) The animation completes and the notification is in focus, with the app being completely covered. The did_focus hander is called with in_focus set to false. 4) The notification is dismissed and the animation to return to the app starts. The will_focus handler is called with in_focus set to true. 5) The animation completes and the app is in focus. The did_focus handler is called with in_focus set to true.
AppFocusHandler AppFocusHandlers::did_focus |
Handler which will be called when an animation finished which has put the app into focus or taken the app out of focus.
AppFocusHandler AppFocusHandlers::will_focus |
Handler which will be called right before an app will lose or gain focus.