java.lang.Object
com.getpebble.android.kit.Constants
Constant values used by PebbleKit-enabled android applications.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The Enum PebbleAppType.static enum
The Enum PebbleDataType. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The bundle-key used to store a message's UUID.static final String
The bundle-key used to store the type of application being customized in a CUSTOMIZE intent.static final String
The bundle-key used to store the custom icon provided in a CUSTOMIZE intent.static final String
The bundle-key used to store the custom name provided in a CUSTOMIZE intent.static final String
A bundle-key used to store the tag for the corresponding data log.static final String
The bundle-key used to store the timestamp of when a data log was first created.static final String
A bundle-key used to store the UUID that uniquely identifies a data log.static final int
The Constant GOLF_BACK_KEY.static final int
The Constant GOLF_CMD_KEY.static final int
Command sent by the golf-application to display the previous hole.static final int
Command sent by the golf-application to display the next hole.static final int
The Constant GOLF_FRONT_KEY.static final int
The Constant GOLF_HOLE_KEY.static final int
The Constant GOLF_MID_KEY.static final int
The Constant GOLF_PAR_KEY.static final UUID
The UUID corresponding to Pebble's built-in "Golf" application.static final String
Intent broadcast to pebble.apk to indicate that a message was received from the watch.static final String
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.static final String
Intent broadcast to pebble.apk to indicate that a message was unsuccessfully received from the watch.static final String
Intent broadcast from pebble.apk containing one-or-more key-value pairs sent from the watch to the phone.static final String
Intent broadcast from pebble.apk indicating that a sent message was successfully received by a watch app.static final String
Intent broadcast from pebble.apk indicating that a sent message was not received by a watch app.static final String
Intent broadcast to pebble.apk containing one-or-more key-value pairs to be sent to the watch from the phone.static final String
Intent broadcast to pebble.apk responsible for launching a watch-app on the connected watch.static final String
Intent broadcast to pebble.apk responsible for closing a running watch-app on the connected watch.static final String
Intent broadcast to pebble.apk implicitly when a unit of data from a data log is received.static final String
Intent broadcast from pebble.apk indicating the session has finished.static final String
Intent broadcast from pebble.apk containing a unit of data from a data log.static final String
Intent broadcast to pebble.apk to request data logs for a particular app.static final String
Intent broadcast by pebble.apk when a new connection to a Pebble is established.static final String
Intent broadcast by pebble.apk when the connection to a Pebble is closed or lost.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String
The bundle-key used to store a message's JSON payload send-to or received-from the watch.static final String
A bundle-key used to store the ID of a unit of data in a data log.static final String
A bundle-key used to store the value of the data unit.static final String
A bundle-key used to store the data type of the data unit.static final int
The PebbleDictionary key corresponding to the custom label field sent to the Sports watch-app.static final int
The PebbleDictionary key corresponding to the custom value sent to the Sports watch-app.static final int
The PebbleDictionary key corresponding to the 'data' field sent to the Sports watch-app.static final int
PebbleDictionary value corresponding to 'pace' data.static final int
PebbleDictionary value corresponding to 'speed' data.static final int
The PebbleDictionary key corresponding to the 'distance' field sent to the Sports watch-app.static final int
The PebbleDictionary key corresponding to the 'heart rate' field sent to the Sports watch-app.static final int
The PebbleDictionary key corresponding to the 'label' field sent to the Sports watch-app.static final int
The Constant SPORTS_STATE_END.static final int
The Constant SPORTS_STATE_INIT.static final int
The PebbleDictionary key corresponding to the 'state' field sent to the Sports watch-app.static final int
The Constant SPORTS_STATE_PAUSED.static final int
The Constant SPORTS_STATE_RUNNING.static final int
The PebbleDictionary key corresponding to the 'time' field sent to the Sports watch-app.static final int
PebbleDictionary value corresponding to 'imperial' units.static final int
The PebbleDictionary key corresponding to the 'units' field sent to the Sports watch-app.static final int
PebbleDictionary value corresponding to 'metric' units.static final UUID
The UUID corresponding to Pebble's built-in "Sports" application.static final String
The bundle-key used to store a message's transaction id. -
Method Summary
-
Field Details
-
INTENT_PEBBLE_CONNECTED
Intent broadcast by pebble.apk when a new connection to a Pebble is established.- See Also:
-
INTENT_PEBBLE_DISCONNECTED
Intent broadcast by pebble.apk when the connection to a Pebble is closed or lost.- See Also:
-
INTENT_APP_ACK
Intent broadcast to pebble.apk to indicate that a message was received from the watch. To avoid protocol timeouts on the watch, applications must ACK or NACK all received messages.- See Also:
-
INTENT_APP_NACK
Intent broadcast to pebble.apk to indicate that a message was unsuccessfully received from the watch.- See Also:
-
INTENT_APP_RECEIVE
Intent broadcast from pebble.apk containing one-or-more key-value pairs sent from the watch to the phone.- See Also:
-
INTENT_APP_RECEIVE_ACK
Intent broadcast from pebble.apk indicating that a sent message was successfully received by a watch app.- See Also:
-
INTENT_APP_RECEIVE_NACK
Intent broadcast from pebble.apk indicating that a sent message was not received by a watch app.- See Also:
-
INTENT_APP_SEND
Intent broadcast to pebble.apk containing one-or-more key-value pairs to be sent to the watch from the phone.- See Also:
-
INTENT_APP_START
Intent broadcast to pebble.apk responsible for launching a watch-app on the connected watch. This intent is idempotent.- See Also:
-
INTENT_APP_STOP
Intent broadcast to pebble.apk responsible for closing a running watch-app on the connected watch. This intent is idempotent.- See Also:
-
INTENT_APP_CUSTOMIZE
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.- See Also:
-
INTENT_DL_RECEIVE_DATA
Intent broadcast from pebble.apk containing a unit of data from a data log.- See Also:
-
INTENT_DL_ACK_DATA
Intent broadcast to pebble.apk implicitly when a unit of data from a data log is received.- See Also:
-
INTENT_DL_REQUEST_DATA
Intent broadcast to pebble.apk to request data logs for a particular app.- See Also:
-
INTENT_DL_FINISH_SESSION
Intent broadcast from pebble.apk indicating the session has finished.- See Also:
-
SPORTS_UUID
The UUID corresponding to Pebble's built-in "Sports" application. -
GOLF_UUID
The UUID corresponding to Pebble's built-in "Golf" application. -
TRANSACTION_ID
The bundle-key used to store a message's transaction id.- See Also:
-
APP_UUID
The bundle-key used to store a message's UUID.- See Also:
-
MSG_DATA
The bundle-key used to store a message's JSON payload send-to or received-from the watch.- See Also:
-
CUST_APP_TYPE
The bundle-key used to store the type of application being customized in a CUSTOMIZE intent.- See Also:
-
CUST_NAME
The bundle-key used to store the custom name provided in a CUSTOMIZE intent.- See Also:
-
CUST_ICON
The bundle-key used to store the custom icon provided in a CUSTOMIZE intent.- See Also:
-
DATA_LOG_TIMESTAMP
The bundle-key used to store the timestamp of when a data log was first created.- See Also:
-
DATA_LOG_UUID
A bundle-key used to store the UUID that uniquely identifies a data log.- See Also:
-
DATA_LOG_TAG
A bundle-key used to store the tag for the corresponding data log.- See Also:
-
PBL_DATA_ID
A bundle-key used to store the ID of a unit of data in a data log.- See Also:
-
PBL_DATA_TYPE
A bundle-key used to store the data type of the data unit.- See Also:
-
PBL_DATA_OBJECT
A bundle-key used to store the value of the data unit.- See Also:
-
SPORTS_TIME_KEY
public static final int SPORTS_TIME_KEYThe PebbleDictionary key corresponding to the 'time' field sent to the Sports watch-app.- See Also:
-
SPORTS_DISTANCE_KEY
public static final int SPORTS_DISTANCE_KEYThe PebbleDictionary key corresponding to the 'distance' field sent to the Sports watch-app.- See Also:
-
SPORTS_DATA_KEY
public static final int SPORTS_DATA_KEYThe PebbleDictionary key corresponding to the 'data' field sent to the Sports watch-app. The data field is paired with the label specified by SPORTS_LABEL_KEY and can be used to display speed or pace data.- See Also:
-
SPORTS_UNITS_KEY
public static final int SPORTS_UNITS_KEYThe PebbleDictionary key corresponding to the 'units' field sent to the Sports watch-app.- See Also:
-
SPORTS_STATE_KEY
public static final int SPORTS_STATE_KEYThe PebbleDictionary key corresponding to the 'state' field sent to the Sports watch-app. Both the watch and phone-app may modify this field. The phone-application is responsible for performing any required state transitions to stay in sync with the watch-app's state.- See Also:
-
SPORTS_LABEL_KEY
public static final int SPORTS_LABEL_KEYThe PebbleDictionary key corresponding to the 'label' field sent to the Sports watch-app. The label field controls the label above the 'data' field.- See Also:
-
SPORTS_HR_BPM_KEY
public static final int SPORTS_HR_BPM_KEYThe PebbleDictionary key corresponding to the 'heart rate' field sent to the Sports watch-app. The heart rate field controls the data displayed in the scrollable field containing heart rate bpm.- See Also:
-
SPORTS_CUSTOM_LABEL_KEY
public static final int SPORTS_CUSTOM_LABEL_KEYThe PebbleDictionary key corresponding to the custom label field sent to the Sports watch-app. This label field controls the label above the custom value field.- See Also:
-
SPORTS_CUSTOM_VALUE_KEY
public static final int SPORTS_CUSTOM_VALUE_KEYThe PebbleDictionary key corresponding to the custom value sent to the Sports watch-app. The custom value field controls the data displayed in the scrollable field containing custom data.- See Also:
-
SPORTS_UNITS_IMPERIAL
public static final int SPORTS_UNITS_IMPERIALPebbleDictionary value corresponding to 'imperial' units.- See Also:
-
SPORTS_UNITS_METRIC
public static final int SPORTS_UNITS_METRICPebbleDictionary value corresponding to 'metric' units.- See Also:
-
SPORTS_DATA_SPEED
public static final int SPORTS_DATA_SPEEDPebbleDictionary value corresponding to 'speed' data.- See Also:
-
SPORTS_DATA_PACE
public static final int SPORTS_DATA_PACEPebbleDictionary value corresponding to 'pace' data.- See Also:
-
SPORTS_STATE_INIT
public static final int SPORTS_STATE_INITThe Constant SPORTS_STATE_INIT.- See Also:
-
SPORTS_STATE_RUNNING
public static final int SPORTS_STATE_RUNNINGThe Constant SPORTS_STATE_RUNNING.- See Also:
-
SPORTS_STATE_PAUSED
public static final int SPORTS_STATE_PAUSEDThe Constant SPORTS_STATE_PAUSED.- See Also:
-
SPORTS_STATE_END
public static final int SPORTS_STATE_ENDThe Constant SPORTS_STATE_END.- See Also:
-
GOLF_FRONT_KEY
public static final int GOLF_FRONT_KEYThe Constant GOLF_FRONT_KEY.- See Also:
-
GOLF_MID_KEY
public static final int GOLF_MID_KEYThe Constant GOLF_MID_KEY.- See Also:
-
GOLF_BACK_KEY
public static final int GOLF_BACK_KEYThe Constant GOLF_BACK_KEY.- See Also:
-
GOLF_HOLE_KEY
public static final int GOLF_HOLE_KEYThe Constant GOLF_HOLE_KEY.- See Also:
-
GOLF_PAR_KEY
public static final int GOLF_PAR_KEYThe Constant GOLF_PAR_KEY.- See Also:
-
GOLF_CMD_KEY
public static final int GOLF_CMD_KEYThe Constant GOLF_CMD_KEY.- See Also:
-
GOLF_CMD_PREV
public static final int GOLF_CMD_PREVCommand sent by the golf-application to display the next hole.- See Also:
-
GOLF_CMD_NEXT
public static final int GOLF_CMD_NEXTCommand sent by the golf-application to display the previous hole.- See Also:
-
KIT_STATE_COLUMN_CONNECTED
public static final int KIT_STATE_COLUMN_CONNECTED- See Also:
-
KIT_STATE_COLUMN_APPMSG_SUPPORT
public static final int KIT_STATE_COLUMN_APPMSG_SUPPORT- See Also:
-
KIT_STATE_COLUMN_DATALOGGING_SUPPORT
public static final int KIT_STATE_COLUMN_DATALOGGING_SUPPORT- See Also:
-
KIT_STATE_COLUMN_VERSION_MAJOR
public static final int KIT_STATE_COLUMN_VERSION_MAJOR- See Also:
-
KIT_STATE_COLUMN_VERSION_MINOR
public static final int KIT_STATE_COLUMN_VERSION_MINOR- See Also:
-
KIT_STATE_COLUMN_VERSION_POINT
public static final int KIT_STATE_COLUMN_VERSION_POINT- See Also:
-
KIT_STATE_COLUMN_VERSION_TAG
public static final int KIT_STATE_COLUMN_VERSION_TAG- See Also:
-