Handling time components.
The TickTimerService allows your app to be called every time one Time component has changed. This is extremely important for watchfaces. Your app can choose on which time component change a tick should occur. Time components are defined by a TimeUnits enum bitmask.
Subscribe to the tick timer event service. Once subscribed, the handler gets called on every requested unit change. Calling this function multiple times will override the units and handler (i.e., only the last tick_units and handler passed will be used).
The callback to be executed on tick events
a bitmask of all the units that have changed
Unsubscribe from the tick timer event service. Once unsubscribed, the previously registered handler will no longer be called.
Time unit flags that can be used to create a bitmask for use in tick_timer_service_subscribe(). This will also be passed to TickHandler.
Flag to represent the "seconds" time unit.
Flag to represent the "minutes" time unit.
Flag to represent the "hours" time unit.
Flag to represent the "days" time unit.
Flag to represent the "months" time unit.
Flag to represent the "years" time unit.
Callback type for tick timer events.
the time at which the tick event was triggered
which unit change triggered this tick event
Do you have questions about the Pebble SDK?
Do you need some help understanding something on this page?
You can either take advantage of our awesome developer community and check out the SDK Help forums, or you can send us a message through the website!