For a complete guide on integrating TitaniumPebble in your project, please refer to the README. This document is only a function reference.
How many Pebble devices are connected to the mobile device.
Note: On Android, this only returns 0
or 1
Type | Value |
---|---|
Number | The number of connected Pebbles |
Sets the Pebble application UUID.
Name | Type | Value |
---|---|---|
uuid | String | The Pebble application UUID |
None
Checks if a Pebble is connected to the mobile device.
None
Type | Value |
---|---|
Boolean | Whether a watch is connected |
Connect to the Pebble watch.
Name | Type | Value |
---|---|---|
params | Object | |
params.success | Function | The success callback |
params.error | Function | The error callback |
None
Retrieves version information from the Pebble.
Name | Type | Value |
---|---|---|
params | Object | |
params.success | Function | The success callback |
params.error | Function | The error callback |
Type | Value |
---|---|
Object | The version information |
Launches the Pebble application on the watch.
Name | Type | Value |
---|---|---|
params | Object | |
params.success | Function | The success callback |
params.error | Function | The error callback |
None
Closes the Pebble application on the watch.
Name | Type | Value |
---|---|---|
params | Object | |
params.success | Function | The success callback |
params.error | Function | The error callback |
None
Sends a message to the Pebble.
Name | Type | Value |
---|---|---|
params | Object | |
params.message | Object | The message object (see README for formatting example) |
params.success | Function | The success callback |
params.error | Function | The error callback |
None
Fires when a Pebble connects to the device.
Note: The Pebble only sends connect/disconnect events when the watch pairing status changes or the watch enter/leaves the range of the phone. For instance, the connect event does not fire if the Pebble is already connected to your phone and you then launch the application.
None
Fires when a Pebble disconnects from the device.
Note: The Pebble only sends connect/disconnect events when the watch pairing status changes or the watch enter/leaves the range of the phone. For instance, the connect event does not fire if the Pebble is already connected to your phone and you then launch the application.
None
Fires when a Pebble disconnects from the device.
Type | Value |
---|---|
Object | The message data |