Use GFont for TextLayer custom fonts • Use GBitmap for BitmapLayer • Use create_with_resource for loading resources • Use _destroy functions to free resources
use “peek” style to read single data from API • AppFocusService • AccelerometerService • BatteryStateService • ConnectionService • HealthService • TickTimerService
Internet access using XMLHttpRequest. • Location data using geolocation. • The ability to show a configuration page to allow users to customize how the app behaves.
ACKnowledged or "NACK'ed," app_message_open() APP_MESSAGE_INBOX_SIZE_MINIMUM and APP_MESSAGE_OUTBOX_SIZE_MINIMUM app_message_inbox_size_maximum() and app_message_outbox_size_maximum()
from the C app PebbleDataReceiver dataReceiver = new PebbleDataReceiver(appUuid) { @Override public void receiveData(Context context, int transaction_id, PebbleDictionary dict) { // A new AppMessage was received, tell Pebble PebbleKit.sendAckToPebble(context, transaction_id); } };
dict) { final int AppKeyAge = 1; // If the tuple is present... Long ageValue = dict.getInteger(AppKeyAge); if(ageValue != null) { // Read the integer value