Can be used to execute some code at some point in the future.
Waits for a certain amount of milliseconds.
The number of milliseconds to wait for
Registers a timer that ends up in callback being called some specified time in the future.
The expiry time in milliseconds from the current time
The callback that gets called at expiry time
The data that will be passed to callback
A pointer to an AppTimer
that can be used to later reschedule or cancel this timer
Reschedules an already running timer for some point in the future.
The timer to reschedule
The new expiry time in milliseconds from the current time
true if the timer was rescheduled, false if the timer has already elapsed
Cancels an already registered timer. Once cancelled the handle may no longer be used for any purpose.
The type of function which can be called when a timer fires. The argument will be the callback_data
passed to app_timer_register().
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!