pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • Examples
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

Pebble C API

  • Pebble C API
  • Pebble JavaScript API
  • PebbleKit JS
  • PebbleKit iOS
  • PebbleKit Android
  • Foundation
    • App
    • App Communication
    • App Glance
    • AppMessage
    • AppSync
    • AppWorker
    • DataLogging
    • DataStructures
      • UUID
    • Dictation
    • Dictionary
    • Event Service
      • AccelerometerService
      • AppFocusService
      • BatteryStateService
      • CompassService
      • ConnectionService
      • HealthService
      • TickTimerService
    • Exit Reason
    • Internationalization
    • Launch Reason
    • Logging
    • Math
    • Memory Management
    • Platform
    • Resources
      • File Formats
    • Storage
    • Timer
    • Wakeup
    • Wall Time
    • WatchInfo
    • Rocky
  • Graphics
    • Draw Commands
    • Drawing Paths
    • Drawing Primitives
    • Drawing Text
    • Fonts
    • Graphics Context
    • Graphics Types
      • Color Definitions
  • User Interface
    • Animation
      • PropertyAnimation
    • Clicks
    • Layers
      • ActionBarLayer
      • BitmapLayer
      • MenuLayer
      • RotBitmapLayer
      • ScrollLayer
      • SimpleMenuLayer
      • StatusBarLayer
      • TextLayer
    • Light
    • Preferences
    • UnobstructedArea
    • Vibes
    • Window
      • ActionMenu
      • NumberWindow
    • Window Stack
  • Standard C
    • Format
    • Locale
    • Math
    • Memory
    • String
    • Time

Foundation

The core of the Pebble SDK.

The Pebble SDK consists of different frameworks that are organized by functionality. Each framework includes an API and provides access to the software libraries supported natively by Pebble OS. You use these interfaces (APIs) in the C programming language to write software for the Pebble platform.

Frameworks are grouped hierarchically into Foundation, Graphics, Standard C and User Interface.

The Foundation framework is the core of the Pebble OS.

Modules

App

App entry point and event loop.

App Communication

API for interacting with the Pebble communication subsystem.

App Glance

API for the application to modify its glance.

AppMessage

Bi-directional communication between phone apps and Pebble watchapps.

AppSync

UI synchronization layer for AppMessage.

AppWorker

Runs in the background, and can communicate with the foreground app.

DataLogging

Enables logging data asynchronously to a mobile app.

DataStructures

 

Dictation

 

Dictionary

Data serialization utilities.

Event Service

APIs to handle event services.

Exit Reason

API for the application to notify the system of the reason it will exit.

Internationalization

Internationalization & Localization APIs.

Launch Reason

API for checking what caused the application to launch.

Logging

Functions related to logging from apps.

Math

Math routines.

Memory Management

Utility functions for managing an application's memory.

Platform

 

Resources

Managing application resources.

Storage

A mechanism to store persistent application data and state.

Timer

Can be used to execute some code at some point in the future.

Wakeup

Allows applications to schedule to be launched even if they are not running.

Wall Time

Functions, data structures and other things related to wall clock time.

WatchInfo

Provides information about the watch itself.

Rocky

 

Need some help?

Modules

  • App
  • App Communication
  • App Glance
  • AppMessage
  • AppSync
  • AppWorker
  • DataLogging
  • DataStructures
  • Dictation
  • Dictionary
  • Event Service
  • Exit Reason
  • Internationalization
  • Launch Reason
  • Logging
  • Math
  • Memory Management
  • Platform
  • Resources
  • Storage
  • Timer
  • Wakeup
  • Wall Time
  • WatchInfo
  • Rocky

Getting Help

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!