Skip navigation links
A C D F G I K L M O P R S T V W 

A

addBytes(int, byte[]) - Method in class com.getpebble.android.kit.util.PebbleDictionary
Associate the specified byte array with the provided key in the dictionary.
addInt16(int, short) - Method in class com.getpebble.android.kit.util.PebbleDictionary
Associate the specified signed short with the provided key in the dictionary.
addInt32(int, int) - Method in class com.getpebble.android.kit.util.PebbleDictionary
Associate the specified signed int with the provided key in the dictionary.
addInt8(int, byte) - Method in class com.getpebble.android.kit.util.PebbleDictionary
Associate the specified signed byte with the provided key in the dictionary.
addString(int, String) - Method in class com.getpebble.android.kit.util.PebbleDictionary
Associate the specified String with the provided key in the dictionary.
addTuple(PebbleTuple) - Method in class com.getpebble.android.kit.util.PebbleDictionary
 
addUint16(int, short) - Method in class com.getpebble.android.kit.util.PebbleDictionary
Associate the specified unsigned short with the provided key in the dictionary.
addUint32(int, int) - Method in class com.getpebble.android.kit.util.PebbleDictionary
Associate the specified unsigned int with the provided key in the dictionary.
addUint8(int, byte) - Method in class com.getpebble.android.kit.util.PebbleDictionary
Associate the specified unsigned byte with the provided key in the dictionary.
APP_UUID - Static variable in class com.getpebble.android.kit.Constants
The bundle-key used to store a message's UUID.
areAppMessagesSupported(Context) - Static method in class com.getpebble.android.kit.PebbleKit
Synchronously query the Pebble application to see if the connected watch is running a firmware version that supports PebbleKit messages.

C

closeAppOnPebble(Context, UUID) - Static method in class com.getpebble.android.kit.PebbleKit
Send a message to the connected Pebble to close an application identified by a UUID.
com.getpebble.android.kit - package com.getpebble.android.kit
 
com.getpebble.android.kit.util - package com.getpebble.android.kit.util
 
Constants - Class in com.getpebble.android.kit
Constant values used by PebbleKit-enabled android applications.
Constants.PebbleAppType - Enum in com.getpebble.android.kit
The Enum PebbleAppType.
Constants.PebbleDataType - Enum in com.getpebble.android.kit
The Enum PebbleDataType.
contains(int) - Method in class com.getpebble.android.kit.util.PebbleDictionary
Returns true if this dictionary contains a mapping for the specified key.
CUST_APP_TYPE - Static variable in class com.getpebble.android.kit.Constants
The bundle-key used to store the type of application being customized in a CUSTOMIZE intent.
CUST_ICON - Static variable in class com.getpebble.android.kit.Constants
The bundle-key used to store the custom icon provided in a CUSTOMIZE intent.
CUST_NAME - Static variable in class com.getpebble.android.kit.Constants
The bundle-key used to store the custom name provided in a CUSTOMIZE intent.
customizeWatchApp(Context, Constants.PebbleAppType, String, Bitmap) - Static method in class com.getpebble.android.kit.PebbleKit
Send a message to the connected Pebble to "customize" a built-in PebbleKit watch-app.

D

DATA_LOG_TAG - Static variable in class com.getpebble.android.kit.Constants
A bundle-key used to store the tag for the corresponding data log.
DATA_LOG_TIMESTAMP - Static variable in class com.getpebble.android.kit.Constants
The bundle-key used to store the timestamp of when a data log was first created.
DATA_LOG_UUID - Static variable in class com.getpebble.android.kit.Constants
A bundle-key used to store the UUID that uniquely identifies a data log.

F

fromByte(byte) - Static method in enum com.getpebble.android.kit.Constants.PebbleDataType
Instantiates a new pebble data type from a byte.
fromJson(String) - Static method in class com.getpebble.android.kit.util.PebbleDictionary
Deserializes a JSON representation of a PebbleDictionary.

G

getBytes(int) - Method in class com.getpebble.android.kit.util.PebbleDictionary
Returns the byte array to which the specified key is mapped, or null if the key does not exist in this dictionary.
getCustomLabel() - Method in class com.getpebble.android.kit.util.SportsState
The custom label to show in the sports UI.
getCustomValue() - Method in class com.getpebble.android.kit.util.SportsState
The custom value to show in the sports UI.
getDistance() - Method in class com.getpebble.android.kit.util.SportsState
The current distance in kilometers or miles.
getHeartBPM() - Method in class com.getpebble.android.kit.util.SportsState
The current heart rate in beats per minute.
getInteger(int) - Method in class com.getpebble.android.kit.util.PebbleDictionary
Returns the signed integer to which the specified key is mapped, or null if the key does not exist in this dictionary.
getMajor() - Method in class com.getpebble.android.kit.PebbleKit.FirmwareVersionInfo
 
getMinor() - Method in class com.getpebble.android.kit.PebbleKit.FirmwareVersionInfo
 
getPaceInSec() - Method in class com.getpebble.android.kit.util.SportsState
The current pace in seconds per kilometer or seconds per mile.
getPoint() - Method in class com.getpebble.android.kit.PebbleKit.FirmwareVersionInfo
 
getSpeed() - Method in class com.getpebble.android.kit.util.SportsState
The current speed in kilometers per hour or miles per hour.
getString(int) - Method in class com.getpebble.android.kit.util.PebbleDictionary
Returns the string to which the specified key is mapped, or null if the key does not exist in this dictionary.
getTag() - Method in class com.getpebble.android.kit.PebbleKit.FirmwareVersionInfo
 
getTimeInSec() - Method in class com.getpebble.android.kit.util.SportsState
The current time in seconds.
getUnsignedIntegerAsLong(int) - Method in class com.getpebble.android.kit.util.PebbleDictionary
Returns the unsigned integer as a long to which the specified key is mapped, or null if the key does not exist in this dictionary.
getWatchFWVersion(Context) - Static method in class com.getpebble.android.kit.PebbleKit
Get the version information of the firmware running on a connected watch.
GOLF_BACK_KEY - Static variable in class com.getpebble.android.kit.Constants
The Constant GOLF_BACK_KEY.
GOLF_CMD_KEY - Static variable in class com.getpebble.android.kit.Constants
The Constant GOLF_CMD_KEY.
GOLF_CMD_NEXT - Static variable in class com.getpebble.android.kit.Constants
Command sent by the golf-application to display the previous hole.
GOLF_CMD_PREV - Static variable in class com.getpebble.android.kit.Constants
Command sent by the golf-application to display the next hole.
GOLF_FRONT_KEY - Static variable in class com.getpebble.android.kit.Constants
The Constant GOLF_FRONT_KEY.
GOLF_HOLE_KEY - Static variable in class com.getpebble.android.kit.Constants
The Constant GOLF_HOLE_KEY.
GOLF_MID_KEY - Static variable in class com.getpebble.android.kit.Constants
The Constant GOLF_MID_KEY.
GOLF_PAR_KEY - Static variable in class com.getpebble.android.kit.Constants
The Constant GOLF_PAR_KEY.
GOLF_UUID - Static variable in class com.getpebble.android.kit.Constants
The UUID corresponding to Pebble's built-in "Golf" application.

I

INTENT_APP_ACK - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast to pebble.apk to indicate that a message was received from the watch.
INTENT_APP_CUSTOMIZE - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast to pebble.apk responsible for customizing the name and icon of the 'stock' Sports and Golf applications included in the watch's firmware.
INTENT_APP_NACK - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast to pebble.apk to indicate that a message was unsuccessfully received from the watch.
INTENT_APP_RECEIVE - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast from pebble.apk containing one-or-more key-value pairs sent from the watch to the phone.
INTENT_APP_RECEIVE_ACK - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast from pebble.apk indicating that a sent message was successfully received by a watch app.
INTENT_APP_RECEIVE_NACK - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast from pebble.apk indicating that a sent message was not received by a watch app.
INTENT_APP_SEND - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast to pebble.apk containing one-or-more key-value pairs to be sent to the watch from the phone.
INTENT_APP_START - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast to pebble.apk responsible for launching a watch-app on the connected watch.
INTENT_APP_STOP - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast to pebble.apk responsible for closing a running watch-app on the connected watch.
INTENT_DL_ACK_DATA - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast to pebble.apk implicitly when a unit of data from a data log is received.
INTENT_DL_FINISH_SESSION - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast from pebble.apk indicating the session has finished.
INTENT_DL_RECEIVE_DATA - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast from pebble.apk containing a unit of data from a data log.
INTENT_DL_REQUEST_DATA - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast to pebble.apk to request data logs for a particular app.
INTENT_PEBBLE_CONNECTED - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast by pebble.apk when a new connection to a Pebble is established.
INTENT_PEBBLE_DISCONNECTED - Static variable in class com.getpebble.android.kit.Constants
Intent broadcast by pebble.apk when the connection to a Pebble is closed or lost.
isDataLoggingSupported(Context) - Static method in class com.getpebble.android.kit.PebbleKit
Synchronously query the Pebble application to see if the connected watch is running a firmware version that supports PebbleKit data logging.
isWatchConnected(Context) - Static method in class com.getpebble.android.kit.PebbleKit
Synchronously query the Pebble application to see if an active Bluetooth connection to a watch currently exists.
iterator() - Method in class com.getpebble.android.kit.util.PebbleDictionary

K

key - Variable in class com.getpebble.android.kit.util.PebbleTuple
The integer key identifying the tuple.
KIT_STATE_COLUMN_APPMSG_SUPPORT - Static variable in class com.getpebble.android.kit.Constants
 
KIT_STATE_COLUMN_CONNECTED - Static variable in class com.getpebble.android.kit.Constants
 
KIT_STATE_COLUMN_DATALOGGING_SUPPORT - Static variable in class com.getpebble.android.kit.Constants
 
KIT_STATE_COLUMN_VERSION_MAJOR - Static variable in class com.getpebble.android.kit.Constants
 
KIT_STATE_COLUMN_VERSION_MINOR - Static variable in class com.getpebble.android.kit.Constants
 
KIT_STATE_COLUMN_VERSION_POINT - Static variable in class com.getpebble.android.kit.Constants
 
KIT_STATE_COLUMN_VERSION_TAG - Static variable in class com.getpebble.android.kit.Constants
 

L

length - Variable in class com.getpebble.android.kit.util.PebbleTuple
The length of the tuple's value in bytes.

M

MSG_DATA - Static variable in class com.getpebble.android.kit.Constants
The bundle-key used to store a message's JSON payload send-to or received-from the watch.

O

onFinishSession(Context, UUID, Long, Long) - Method in class com.getpebble.android.kit.PebbleKit.PebbleDataLogReceiver
Called when a session has been finished on the watch and all data has been transmitted by pebble.apk
onReceive(Context, Intent) - Method in class com.getpebble.android.kit.PebbleKit.PebbleAckReceiver
onReceive(Context, Intent) - Method in class com.getpebble.android.kit.PebbleKit.PebbleDataLogReceiver
onReceive(Context, Intent) - Method in class com.getpebble.android.kit.PebbleKit.PebbleDataReceiver
onReceive(Context, Intent) - Method in class com.getpebble.android.kit.PebbleKit.PebbleNackReceiver
ord - Variable in enum com.getpebble.android.kit.Constants.PebbleAppType
The ord.
ord - Variable in enum com.getpebble.android.kit.Constants.PebbleDataType
The ord.

P

PBL_DATA_ID - Static variable in class com.getpebble.android.kit.Constants
A bundle-key used to store the ID of a unit of data in a data log.
PBL_DATA_OBJECT - Static variable in class com.getpebble.android.kit.Constants
A bundle-key used to store the value of the data unit.
PBL_DATA_TYPE - Static variable in class com.getpebble.android.kit.Constants
A bundle-key used to store the data type of the data unit.
PebbleAckReceiver(UUID) - Constructor for class com.getpebble.android.kit.PebbleKit.PebbleAckReceiver
Instantiates a new pebble ack receiver.
PebbleDataLogReceiver(UUID) - Constructor for class com.getpebble.android.kit.PebbleKit.PebbleDataLogReceiver
Instantiates a new pebble nack receiver.
PebbleDataReceiver(UUID) - Constructor for class com.getpebble.android.kit.PebbleKit.PebbleDataReceiver
Instantiates a new pebble data receiver.
PebbleDictionary - Class in com.getpebble.android.kit.util
A collection of key-value pairs of heterogeneous types.
PebbleDictionary() - Constructor for class com.getpebble.android.kit.util.PebbleDictionary
 
PebbleDictionary.PebbleDictTypeException - Exception in com.getpebble.android.kit.util
 
PebbleDictionary.TupleOverflowException - Exception in com.getpebble.android.kit.util
 
PebbleDictTypeException(long, PebbleTuple.TupleType, PebbleTuple.TupleType) - Constructor for exception com.getpebble.android.kit.util.PebbleDictionary.PebbleDictTypeException
 
PebbleKit - Class in com.getpebble.android.kit
A helper class providing methods for interacting with third-party Pebble Smartwatch applications.
PebbleKit.FirmwareVersionInfo - Class in com.getpebble.android.kit
 
PebbleKit.PebbleAckReceiver - Class in com.getpebble.android.kit
A special-purpose BroadcastReceiver that makes it easy to handle 'RECEIVE_ACK' intents broadcast from pebble .apk.
PebbleKit.PebbleDataLogReceiver - Class in com.getpebble.android.kit
A special-purpose BroadcastReceiver that makes it easy to handle 'DATA_AVAILABLE' data logging intents broadcast from pebble.apk.
PebbleKit.PebbleDataReceiver - Class in com.getpebble.android.kit
A special-purpose BroadcastReceiver that makes it easy to handle 'RECEIVE' intents broadcast from pebble.apk.
PebbleKit.PebbleNackReceiver - Class in com.getpebble.android.kit
A special-purpose BroadcastReceiver that makes it easy to handle 'RECEIVE_NACK' intents broadcast from pebble .apk.
PebbleNackReceiver(UUID) - Constructor for class com.getpebble.android.kit.PebbleKit.PebbleNackReceiver
Instantiates a new pebble nack receiver.
PebbleTuple - Class in com.getpebble.android.kit.util
A key-value pair stored in a PebbleDictionary.
PebbleTuple.ValueOverflowException - Exception in com.getpebble.android.kit.util
 

R

receiveAck(Context, int) - Method in class com.getpebble.android.kit.PebbleKit.PebbleAckReceiver
Handle the ACK received from the connected watch.
receiveData(Context, UUID, Long, Long, Long) - Method in class com.getpebble.android.kit.PebbleKit.PebbleDataLogReceiver
Handle an UnsignedInteger data unit that was logged the watch and broadcast by pebble.apk.
receiveData(Context, UUID, Long, Long, byte[]) - Method in class com.getpebble.android.kit.PebbleKit.PebbleDataLogReceiver
Handle a byte array data unit that was logged the watch and broadcast by pebble.apk.
receiveData(Context, UUID, Long, Long, int) - Method in class com.getpebble.android.kit.PebbleKit.PebbleDataLogReceiver
Handle an int data unit that was logged the watch and broadcast by pebble.apk.
receiveData(Context, int, PebbleDictionary) - Method in class com.getpebble.android.kit.PebbleKit.PebbleDataReceiver
Perform some work on the data received from the connected watch.
receiveNack(Context, int) - Method in class com.getpebble.android.kit.PebbleKit.PebbleNackReceiver
Handle the NACK received from the connected watch.
registerDataLogReceiver(Context, PebbleKit.PebbleDataLogReceiver) - Static method in class com.getpebble.android.kit.PebbleKit
A convenience function to assist in programatically registering a broadcast receiver for the 'DATA_AVAILABLE' intent.
registerPebbleConnectedReceiver(Context, BroadcastReceiver) - Static method in class com.getpebble.android.kit.PebbleKit
A convenience function to assist in programatically registering a broadcast receiver for the 'CONNECTED' intent.
registerPebbleDisconnectedReceiver(Context, BroadcastReceiver) - Static method in class com.getpebble.android.kit.PebbleKit
A convenience function to assist in programatically registering a broadcast receiver for the 'DISCONNECTED' intent.
registerReceivedAckHandler(Context, PebbleKit.PebbleAckReceiver) - Static method in class com.getpebble.android.kit.PebbleKit
A convenience function to assist in programatically registering a broadcast receiver for the 'RECEIVE_ACK' intent.
registerReceivedDataHandler(Context, PebbleKit.PebbleDataReceiver) - Static method in class com.getpebble.android.kit.PebbleKit
A convenience function to assist in programatically registering a broadcast receiver for the 'RECEIVE' intent.
registerReceivedNackHandler(Context, PebbleKit.PebbleNackReceiver) - Static method in class com.getpebble.android.kit.PebbleKit
A convenience function to assist in programatically registering a broadcast receiver for the 'RECEIVE_NACK' intent.
remove(int) - Method in class com.getpebble.android.kit.util.PebbleDictionary
Removes the mapping for a key from this map if it is present.
requestDataLogsForApp(Context, UUID) - Static method in class com.getpebble.android.kit.PebbleKit
A convenience function to emit an intent to pebble.apk to request the data logs for a particular app.

S

sendAckToPebble(Context, int) - Static method in class com.getpebble.android.kit.PebbleKit
Send a message to the connected watch acknowledging the receipt of a PebbleDictionary.
sendDataToPebble(Context, UUID, PebbleDictionary) - Static method in class com.getpebble.android.kit.PebbleKit
Send one-or-more key-value pairs to the watch-app identified by the provided UUID.
sendDataToPebbleWithTransactionId(Context, UUID, PebbleDictionary, int) - Static method in class com.getpebble.android.kit.PebbleKit
Send one-or-more key-value pairs to the watch-app identified by the provided UUID.
sendNackToPebble(Context, int) - Static method in class com.getpebble.android.kit.PebbleKit
Send a message to the connected watch that the previously sent PebbleDictionary was not received successfully.
setCustomLabel(String) - Method in class com.getpebble.android.kit.util.SportsState
Set the custom label to show in the sports UI.
setCustomValue(String) - Method in class com.getpebble.android.kit.util.SportsState
Set the custom value to show in the sports UI.
setDistance(float) - Method in class com.getpebble.android.kit.util.SportsState
Set the current distance in kilometers or miles.
setHeartBPM(byte) - Method in class com.getpebble.android.kit.util.SportsState
Set the current heart rate in beats per minute.
setPaceInSec(int) - Method in class com.getpebble.android.kit.util.SportsState
Set the current pace in seconds per kilometer or seconds per mile.
setSpeed(float) - Method in class com.getpebble.android.kit.util.SportsState
Set the current speed in kilometers per hour or miles per hour.
setTimeInSec(int) - Method in class com.getpebble.android.kit.util.SportsState
Set the current time in seconds.
size() - Method in class com.getpebble.android.kit.util.PebbleDictionary
Returns the number of key-value pairs in this dictionary.
SPORTS_CUSTOM_LABEL_KEY - Static variable in class com.getpebble.android.kit.Constants
The PebbleDictionary key corresponding to the custom label field sent to the Sports watch-app.
SPORTS_CUSTOM_VALUE_KEY - Static variable in class com.getpebble.android.kit.Constants
The PebbleDictionary key corresponding to the custom value sent to the Sports watch-app.
SPORTS_DATA_KEY - Static variable in class com.getpebble.android.kit.Constants
The PebbleDictionary key corresponding to the 'data' field sent to the Sports watch-app.
SPORTS_DATA_PACE - Static variable in class com.getpebble.android.kit.Constants
PebbleDictionary value corresponding to 'pace' data.
SPORTS_DATA_SPEED - Static variable in class com.getpebble.android.kit.Constants
PebbleDictionary value corresponding to 'speed' data.
SPORTS_DISTANCE_KEY - Static variable in class com.getpebble.android.kit.Constants
The PebbleDictionary key corresponding to the 'distance' field sent to the Sports watch-app.
SPORTS_HR_BPM_KEY - Static variable in class com.getpebble.android.kit.Constants
The PebbleDictionary key corresponding to the 'heart rate' field sent to the Sports watch-app.
SPORTS_LABEL_KEY - Static variable in class com.getpebble.android.kit.Constants
The PebbleDictionary key corresponding to the 'label' field sent to the Sports watch-app.
SPORTS_STATE_END - Static variable in class com.getpebble.android.kit.Constants
The Constant SPORTS_STATE_END.
SPORTS_STATE_INIT - Static variable in class com.getpebble.android.kit.Constants
The Constant SPORTS_STATE_INIT.
SPORTS_STATE_KEY - Static variable in class com.getpebble.android.kit.Constants
The PebbleDictionary key corresponding to the 'state' field sent to the Sports watch-app.
SPORTS_STATE_PAUSED - Static variable in class com.getpebble.android.kit.Constants
The Constant SPORTS_STATE_PAUSED.
SPORTS_STATE_RUNNING - Static variable in class com.getpebble.android.kit.Constants
The Constant SPORTS_STATE_RUNNING.
SPORTS_TIME_KEY - Static variable in class com.getpebble.android.kit.Constants
The PebbleDictionary key corresponding to the 'time' field sent to the Sports watch-app.
SPORTS_UNITS_IMPERIAL - Static variable in class com.getpebble.android.kit.Constants
PebbleDictionary value corresponding to 'imperial' units.
SPORTS_UNITS_KEY - Static variable in class com.getpebble.android.kit.Constants
The PebbleDictionary key corresponding to the 'units' field sent to the Sports watch-app.
SPORTS_UNITS_METRIC - Static variable in class com.getpebble.android.kit.Constants
PebbleDictionary value corresponding to 'metric' units.
SPORTS_UUID - Static variable in class com.getpebble.android.kit.Constants
The UUID corresponding to Pebble's built-in "Sports" application.
SportsState - Class in com.getpebble.android.kit.util
This container class includes new values of time, distance, and pace or speed.
SportsState() - Constructor for class com.getpebble.android.kit.util.SportsState
 
startAppOnPebble(Context, UUID) - Static method in class com.getpebble.android.kit.PebbleKit
Send a message to the connected Pebble to launch an application identified by a UUID.
synchronize(Context) - Method in class com.getpebble.android.kit.util.SportsState
Synchronizes the current state of the Sports App to the connected watch.

T

toJsonString() - Method in class com.getpebble.android.kit.util.PebbleDictionary
Returns a JSON representation of this dictionary.
TRANSACTION_ID - Static variable in class com.getpebble.android.kit.Constants
The bundle-key used to store a message's transaction id.
TupleOverflowException() - Constructor for exception com.getpebble.android.kit.util.PebbleDictionary.TupleOverflowException
 
tuples - Variable in class com.getpebble.android.kit.util.PebbleDictionary
 
type - Variable in class com.getpebble.android.kit.util.PebbleTuple
The type of value contained in the tuple.

V

value - Variable in class com.getpebble.android.kit.util.PebbleTuple
The value being associated with the tuple's key.
valueOf(String) - Static method in enum com.getpebble.android.kit.Constants.PebbleAppType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.getpebble.android.kit.Constants.PebbleDataType
Returns the enum constant of this type with the specified name.
ValueOverflowException() - Constructor for exception com.getpebble.android.kit.util.PebbleTuple.ValueOverflowException
 
values() - Static method in enum com.getpebble.android.kit.Constants.PebbleAppType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.getpebble.android.kit.Constants.PebbleDataType
Returns an array containing the constants of this enum type, in the order they are declared.

W

width - Variable in class com.getpebble.android.kit.util.PebbleTuple
The 'width' of the tuple's value; This value will always be 'NONE' for non-integer types.
A C D F G I K L M O P R S T V W 
Skip navigation links