The APIs on this page will only work with SDK 4.9+.
Subscribe to touch events. The touch sensor is enabled while subscribed.
Callback invoked for each touch event
User context passed to the callback
Unsubscribe from touch events. The touch sensor is disabled if no other subscribers remain.
true if touch input is currently being delivered to apps. Returns false on platforms without a touchscreen, or when touch has been disabled system-wide (future feature). Apps can poll this (for example on window appear) to avoid looking broken when touch is unavailable.
Touch event data, carried directly in PebbleTouchEvent.
Touch event type.
Callback for touch events.
The touch event data
User-provided context
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 join us on the Discord!