diff --git a/.env.sample b/.env.sample index 20b9a50..4115d5b 100644 --- a/.env.sample +++ b/.env.sample @@ -1,6 +1,6 @@ -URL=http://developer.pebble.com -HTTPS_URL=https://developer.pebble.com -EXTERNAL_SERVER=https://developer-api.getpebble.com +URL=http://developer.rebble.io +HTTPS_URL=https://developer.rebble.io +EXTERNAL_SERVER=https://developer-api.rebble.io DOCS_URL= ALGOLIA_APP_ID= ALGOLIA_API_KEY= diff --git a/README.md b/README.md index eb7d088..8d80db9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# [developer.pebble.com][site] +# [developer.rebble.io][site] -[![Build Status](https://magnum.travis-ci.com/pebble/developer.getpebble.com.svg?token=HUQ9CCUxB447Nq1exrnd)][travis] +[![Build Status](https://magnum.travis-ci.com/pebble/developer.rebble.io.svg?token=HUQ9CCUxB447Nq1exrnd)][travis] This is the repository for the [Pebble Developer website][site]. @@ -176,9 +176,9 @@ the text color, use `--fg-`. Trouble building the developer site? Read the [Troubleshooting](/docs/troubleshooting.md) page for some possible solutions. -[site]: https://developer.pebble.com +[site]: https://developer.rebble.io [markdown]: ./docs/markdown.md [slick]: http://kenwheeler.github.io/slick/ [tinypng]: https://tinypng.com/ [tinyjpg]: https://tinyjpg.com/ -[travis]: https://magnum.travis-ci.com/pebble/developer.getpebble.com +[travis]: https://magnum.travis-ci.com/pebble/developer.rebble.io diff --git a/_config.yml b/_config.yml index 0c6d145..5143303 100644 --- a/_config.yml +++ b/_config.yml @@ -12,11 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -url: https://developer.pebble.com -https_url: https://developer.pebble.com +url: https://developer.rebble.io +https_url: https://developer.rebble.io baseurl: asset_path: /assets -external_server: https://developer-api.getpebble.com +external_server: https://developer-api.rebble.io title: Pebble Developers description: The official developer website for the Pebble smartwatch. @@ -51,26 +51,26 @@ sass: # Helpful and easily changeable external links. links: - pebble: https://www.pebble.com - jobs: https://www.pebble.com/jobs/ + pebble: https://www.rebble.io + jobs: https://www.rebble.io/jobs/ twitter: https://twitter.com/pebbledev/ cloudpebble: https://cloudpebble.net/ cloudpebble_beta: https://beta.cloudpebble.net/ - devportal: https://dev-portal.getpebble.com/ - site_repo: https://github.com/pebble/developer.getpebble.com/ + devportal: https://dev-portal.rebble.io/ + site_repo: https://github.com/pebble/developer.rebble.io/ community_resources_repo: https://github.com/pebble/community-resources/ github: https://github.com/pebble/ - forums: https://forums.pebble.com - forums_developer: https://forums.pebble.com/c/development + forums: https://forums.rebble.io + forums_developer: https://forums.rebble.io/c/development pebblekit_android: https://github.com/pebble/pebble-android-sdk/ pebblekit_ios: https://github.com/pebble/pebble-ios-sdk/ examples_org: https://github.com/pebble-examples pebblekit_android_jar: https://oss.sonatype.org/service/local/repositories/releases/content/com/getpebble/pebblekit/3.0.0/pebblekit-3.0.0-eclipse.jar legal: - privacy: https://www.pebble.com/legal/privacy/ - cookies: https://www.pebble.com/legal/cookies/ - s3_assets: https://developer-assets.getpebble.com - pebble_tool_root: https://s3.amazonaws.com/assets.getpebble.com/pebble-tool/ + privacy: https://www.rebble.io/legal/privacy/ + cookies: https://www.rebble.io/legal/cookies/ + s3_assets: https://developer-assets.rebble.io + pebble_tool_root: https://s3.amazonaws.com/assets.rebble.io/pebble-tool/ libpebble: https://github.com/pebble/libpebble2 kickstarter3: https://www.kickstarter.com/projects/597507018/pebble-2-time-2-and-core-an-entirely-new-3g-ultra discord_invite: http://discord.gg/aRUAYFN diff --git a/app.json b/app.json index b0c16ae..fc7c61a 100644 --- a/app.json +++ b/app.json @@ -1,8 +1,8 @@ { "name": "Pebble Developer Website", "description": "The official Pebble Developer website.", - "website": "https://developer.pebble.com", - "repository": "https://github.com/pebble/developer.getpebble.com", + "website": "https://developer.rebble.io", + "repository": "https://github.com/pebble/developer.rebble.io", "env": { "EXTERNAL_SERVER": { "required": true diff --git a/config.ru b/config.ru index 023d1b8..a5601b4 100644 --- a/config.ru +++ b/config.ru @@ -40,7 +40,7 @@ use Rack::Rewrite do end use Rack::HostRedirect, { - 'developer.getpebble.com' => 'developer.pebble.com' + 'developer.rebble.io' => 'developer.rebble.io' } use Rack::TryStatic, diff --git a/docs.json b/docs.json index 9c7361f..f1c3b70 100644 --- a/docs.json +++ b/docs.json @@ -93,7 +93,7 @@ "column": 2 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "kind": "namespace", @@ -226,7 +226,7 @@ "column": 46 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "params": [ @@ -613,7 +613,7 @@ "column": 44 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "params": [ @@ -1004,7 +1004,7 @@ "column": 47 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "params": [ @@ -1394,7 +1394,7 @@ "column": 46 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "params": [ @@ -1793,7 +1793,7 @@ "column": 48 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "params": [ @@ -2168,7 +2168,7 @@ "column": 33 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "returns": [ @@ -2399,7 +2399,7 @@ "column": 11 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "name": "lineWidth", @@ -2506,7 +2506,7 @@ "column": 8 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "name": "lineCap", @@ -2609,7 +2609,7 @@ "column": 10 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "name": "lineJoin", @@ -2712,7 +2712,7 @@ "column": 12 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "name": "miterLimit", @@ -2824,7 +2824,7 @@ "column": 29 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "returns": [ @@ -3003,7 +3003,7 @@ "column": 37 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "params": [ @@ -3174,7 +3174,7 @@ "column": 16 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "name": "lineDashOffset", @@ -3404,7 +3404,7 @@ "column": 2 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/CanvasRenderingContext2D.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/CanvasRenderingContext2D.js", "code": "/**\n * The `TextMetrics` interface represents the dimensions of a text in the\n * canvas (display), as created by ``measureText``.\n * @typedef {Object} TextMetrics\n * @property {Number} width - Calculated width of text in pixels.\n * @property {Number} height - Calculated height of text in pixels.\n * @property {Number} actualBoundingBoxLeft - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the left side of the\n * bounding rectangle of the given text, in pixels.\n * @property {Number} actualBoundingBoxRight - A number giving the distance\n * parallel to the baseline from the alignment point given by the\n * ``CanvasRenderingContext2D.textAlign`` property to the right side of the\n * bounding rectangle of the given text, in CSS pixels.\n */\n\n\n\n/**\n * @namespace\n * @description\n * The CanvasRenderingContext2D interface is used for drawing rectangles, text,\n * images and other objects onto the canvas element. It provides the 2D rendering\n * context for the drawing on the device's display.\n */\nvar CanvasRendingContext2D = {\n /**\n * @description\n * Sets all pixels in the rectangle at (x,y) with size (width, height) to\n * black, erasing any previously drawn content.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n clearRect: function(x, y, width, height) { },\n\n /**\n * @description\n * Draws a filled rectangle at (x,y) with size (width, height). \n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n fillRect: function(x,y, width, height) { },\n\n /**\n * @description\n * Paints a rectangle at (x, y) with size (width, height), using the current\n * stroke style.\n *\n * @param {Number} x - The x-axis coordinate of the rectangle's starting point\n * @param {Number} y - The y-axis coordinate of the rectangle's starting point\n * @param {Number} width - The rectangle's width\n * @param {Number} height - The rectangle's height\n */\n strokeRect: function(x, y, width, height) { },\n\n\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n */\n fillText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Draws (fills) text at the given (x,y) position using the current stroke style.\n *\n * @param {String} text - The text to draw\n * @param {Number} x - The x-coordinate of the text's starting point\n * @param {Number} y - The y-coordinate of the text's starting point\n * @param {Number} [maxWidth] - The maximum width to draw. If specified, and\n * the string is wider than the width, the font is adjusted to use a smaller\n * font.\n *\n */\n strokeText: function(text, x, y, maxWidth) { },\n\n /**\n * @description\n * Returns an object containing information about the text.\n *\n * @returns {TextMetrics} Information about the measured text\n *\n * @param {String} text - The text to measure\n */\n measureText: function(text) { },\n\n /**\n * @description\n * The width of lines drawn (to the nearest integer) with the context (1.0\n * by default)\n */\n lineWidth,\n\n /**\n * @description\n * Determines how the end points of every line are drawn ('butt' by default).\n * There are 3 possible values for this property: 'butt', 'round', 'square'.\n */\n lineCap,\n\n /**\n * Determins how two connecting segments with non-zero lengths in a shape\n * are joined together ('miter' by default). There are three possible values\n * for this property: 'miter', 'round', 'bevel'\n */\n lineJoin,\n\n /**\n * @description\n * Sets the miter limit ratio in pixels (10 by default)\n */\n miterLimit,\n\n /**\n * @description\n * Gets the current line dash pattern\n *\n * @returns {Array} - A list of numbers that specifies the distances to\n * alternately draw a line and a gap.\n */\n getLineDash: function() { },\n\n /**\n * @description\n * Sets the current line dash pattern.\n *\n * @param {Array} segments - A list of numbers that specifies the distances to\n alternatly draw a line and a gap.\n */\n setLineDash: function(segments) { },\n\n /**\n * @description\n * Sets the line dash pattern offset or \"phase\" (0 by default).\n */\n lineDashOffset\n};\n" }, "kind": "typedef", @@ -3841,7 +3841,7 @@ "column": 27 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/Console.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/Console.js", "code": "/**\n * @namespace Console\n * @description\n * Provides an interface for the Console.log method\n */\nvar Console = new Object();\n\n/**\n * @description\n * Logs a message\n * @param {String} message - the message to log\n */\nConsole.log = function(message) { };\n" }, "kind": "namespace", @@ -3940,7 +3940,7 @@ "column": 36 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/Console.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/Console.js", "code": "/**\n * @namespace Console\n * @description\n * Provides an interface for the Console.log method\n */\nvar Console = new Object();\n\n/**\n * @description\n * Logs a message\n * @param {String} message - the message to log\n */\nConsole.log = function(message) { };\n" }, "params": [ @@ -4146,7 +4146,7 @@ "column": 38 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/rocky.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/rocky.js", "code": "/* Shim for Rocky.js docs. Contains top level APIs + the Rocky object */\n\n/**\n * @description\n * Calls a function after a specified delay\n * @returns {Number} timeoutId - The ID of the timeout\n * @param {Function} fct - The function to execute\n * @param {Number} delay - The delay (in ms)\n */\nsetTimeout = function(fct, delay) { };\n\n/**\n * @description\n * Clears the delay set by ``setTimeout``\n * @param {Number} timeoutId - The ID of the timeout you wish to clear.\n */\nclearTimeout = function(timeoutId) { };\n\n/* Shim for Rocky.js docs. Contains top level APIs + the Rocky object */\n\n/**\n * @description\n * Repeatedly calls a function, with a fixed time delay between each call\n * @returns {Number} intervalId - The ID of the interval\n * @param {Function} fct - The function to execute\n * @param {Number} delay - The delay (in ms)\n */\nsetInterval = function(fct, delay) { };\n\n/**\n * @description\n * Clears the interval set by ``setInterval``\n * @params {Number} intervalId - The ID of the interval you wish to clear.\n */\nclearInterval = function(intervalId) { };\n\n" }, "returns": [ @@ -4453,7 +4453,7 @@ "column": 39 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/rocky.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/rocky.js", "code": "/* Shim for Rocky.js docs. Contains top level APIs + the Rocky object */\n\n/**\n * @description\n * Calls a function after a specified delay\n * @returns {Number} timeoutId - The ID of the timeout\n * @param {Function} fct - The function to execute\n * @param {Number} delay - The delay (in ms)\n */\nsetTimeout = function(fct, delay) { };\n\n/**\n * @description\n * Clears the delay set by ``setTimeout``\n * @param {Number} timeoutId - The ID of the timeout you wish to clear.\n */\nclearTimeout = function(timeoutId) { };\n\n/* Shim for Rocky.js docs. Contains top level APIs + the Rocky object */\n\n/**\n * @description\n * Repeatedly calls a function, with a fixed time delay between each call\n * @returns {Number} intervalId - The ID of the interval\n * @param {Function} fct - The function to execute\n * @param {Number} delay - The delay (in ms)\n */\nsetInterval = function(fct, delay) { };\n\n/**\n * @description\n * Clears the interval set by ``setInterval``\n * @params {Number} intervalId - The ID of the interval you wish to clear.\n */\nclearInterval = function(intervalId) { };\n\n" }, "params": [ @@ -4642,7 +4642,7 @@ "column": 39 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/rocky.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/rocky.js", "code": "/* Shim for Rocky.js docs. Contains top level APIs + the Rocky object */\n\n/**\n * @description\n * Calls a function after a specified delay\n * @returns {Number} timeoutId - The ID of the timeout\n * @param {Function} fct - The function to execute\n * @param {Number} delay - The delay (in ms)\n */\nsetTimeout = function(fct, delay) { };\n\n/**\n * @description\n * Clears the delay set by ``setTimeout``\n * @param {Number} timeoutId - The ID of the timeout you wish to clear.\n */\nclearTimeout = function(timeoutId) { };\n\n/* Shim for Rocky.js docs. Contains top level APIs + the Rocky object */\n\n/**\n * @description\n * Repeatedly calls a function, with a fixed time delay between each call\n * @returns {Number} intervalId - The ID of the interval\n * @param {Function} fct - The function to execute\n * @param {Number} delay - The delay (in ms)\n */\nsetInterval = function(fct, delay) { };\n\n/**\n * @description\n * Clears the interval set by ``setInterval``\n * @params {Number} intervalId - The ID of the interval you wish to clear.\n */\nclearInterval = function(intervalId) { };\n\n" }, "returns": [ @@ -4944,7 +4944,7 @@ "column": 41 } }, - "file": "/Users/devsite/src/pebble/developer.getpebble.com/rocky-stubs/rocky.js", + "file": "/Users/devsite/src/pebble/developer.rebble.io/rocky-stubs/rocky.js", "code": "/* Shim for Rocky.js docs. Contains top level APIs + the Rocky object */\n\n/**\n * @description\n * Calls a function after a specified delay\n * @returns {Number} timeoutId - The ID of the timeout\n * @param {Function} fct - The function to execute\n * @param {Number} delay - The delay (in ms)\n */\nsetTimeout = function(fct, delay) { };\n\n/**\n * @description\n * Clears the delay set by ``setTimeout``\n * @param {Number} timeoutId - The ID of the timeout you wish to clear.\n */\nclearTimeout = function(timeoutId) { };\n\n/* Shim for Rocky.js docs. Contains top level APIs + the Rocky object */\n\n/**\n * @description\n * Repeatedly calls a function, with a fixed time delay between each call\n * @returns {Number} intervalId - The ID of the interval\n * @param {Function} fct - The function to execute\n * @param {Number} delay - The delay (in ms)\n */\nsetInterval = function(fct, delay) { };\n\n/**\n * @description\n * Clears the interval set by ``setInterval``\n * @params {Number} intervalId - The ID of the interval you wish to clear.\n */\nclearInterval = function(intervalId) { };\n\n" }, "name": "clearInterval", diff --git a/docs/environment.md b/docs/environment.md index cc43b5f..2a5b478 100644 --- a/docs/environment.md +++ b/docs/environment.md @@ -8,7 +8,7 @@ This overrides the `url` configuration parameter of Jeyll. Set this to the root of where the site will be hosted. ``` -URL=http://developer.pebble.com +URL=http://developer.rebble.io ``` ## HTTPS_URL @@ -17,7 +17,7 @@ This overrides the `https_url` configuration parameter of Jeyll. Set this to the secure root of where the site will be hosted. ``` -HTTPS_URL=https://developer.pebble.com +HTTPS_URL=https://developer.rebble.io ``` ## PORT @@ -52,7 +52,7 @@ This sets the `external_server` configuration variable, which tells the site the location of the external server used for events, community blog and contact. ``` -EXTERNAL_SERVER=https://developer-api.getpebble.com +EXTERNAL_SERVER=https://developer-api.rebble.io ``` ## DOCS_URL diff --git a/lib/c_docs/doxygen_processor.rb b/lib/c_docs/doxygen_processor.rb index eb4060a..630251c 100644 --- a/lib/c_docs/doxygen_processor.rb +++ b/lib/c_docs/doxygen_processor.rb @@ -66,7 +66,7 @@ def process_paragraph(node, mapping) child.content = '-' when 'ulink' child.name = 'a' - child['href'] = child['url'].sub(%r{^https?://developer.pebble.com/}, '/') + child['href'] = child['url'].sub(%r{^https?://developer.rebble.io/}, '/') child.remove_attribute('url') when 'text' # SKIP! diff --git a/source/_changelogs/2.0-BETA4.md b/source/_changelogs/2.0-BETA4.md index 982cd3d..d74f778 100644 --- a/source/_changelogs/2.0-BETA4.md +++ b/source/_changelogs/2.0-BETA4.md @@ -22,7 +22,7 @@ date: 2013-12-23 * Applications written for Pebble 1.x are not compatible with SDK 2.0 * If a 2.0 version of an application exists, the Pebble mobile applications will automatically install it when when a user upgrades her/his Pebble. -**You can start uploading your application to the Pebble appstore TODAY - [Please do so](http://dev-portal.getpebble.com/)!** +**You can start uploading your application to the Pebble appstore TODAY - [Please do so](http://dev-portal.rebble.io/)!** ## What has changed since BETA3 diff --git a/source/_changelogs/2.0-BETA5.md b/source/_changelogs/2.0-BETA5.md index 07e5c21..21945eb 100644 --- a/source/_changelogs/2.0-BETA5.md +++ b/source/_changelogs/2.0-BETA5.md @@ -21,7 +21,7 @@ date: 2014-01-10 * Applications written for Pebble 1.x are not compatible with SDK 2.0 * If a 2.0 version of an application exists, the Pebble mobile applications will automatically install it when when a user upgrades her/his Pebble. -**You can start uploading your application to the Pebble appstore TODAY - [Please do so](http://dev-portal.getpebble.com/)!** +**You can start uploading your application to the Pebble appstore TODAY - [Please do so](http://dev-portal.rebble.io/)!** ## What has changed since BETA4 diff --git a/source/_changelogs/2.0-DP3.md b/source/_changelogs/2.0-DP3.md index b504987..2b86ef3 100644 --- a/source/_changelogs/2.0-DP3.md +++ b/source/_changelogs/2.0-DP3.md @@ -52,7 +52,7 @@ Known issues: - Max message length is shorter than Bluetooth Classic. - Impact on battery life: we are actively characterizing and working on this, but it is currently less than Bluetooth-Classic only. -Please report any bugs by email to: [ancsbug@getpebble.com](mailto:ancsbug@getpebble.com)! +Please report any bugs by email to: [ancsbug@rebble.io](mailto:ancsbug@rebble.io)! **Remember, this release is under NDA. Please do not share word of this new feature. Thanks a lot!** diff --git a/source/_data/authors.yml b/source/_data/authors.yml index 2c9de38..b1e01e9 100644 --- a/source/_data/authors.yml +++ b/source/_data/authors.yml @@ -75,4 +75,4 @@ lukasz: # team pebble # cherie & thomas # Matt Clark (SetPebble) -# tom@getpebble.com +# tom@rebble.io diff --git a/source/_data/faqs.json b/source/_data/faqs.json index c93ebf7..cfce5c7 100644 --- a/source/_data/faqs.json +++ b/source/_data/faqs.json @@ -69,7 +69,7 @@ "hidden-questions": [ { "question": "When is JS bundling?", - "answer": "Check tweets from @pebbledev and the bundling [forum thread](https://forums.getpebble.com/discussion/12451/pebble-js-bundling-updates)" + "answer": "Check tweets from @pebbledev and the bundling [forum thread](https://forums.rebble.io/discussion/12451/pebble-js-bundling-updates)" }, { "question": "Why does this app say 'coming soon'?", @@ -86,7 +86,7 @@ "questions": [ { "question": "My screen is artifacting/flashing/ customer support issues", - "answer": "Contact [support@getpebble.com](mailto:support@getpebble.com) for RMA issues." + "answer": "Contact [support@rebble.io](mailto:support@rebble.io) for RMA issues." } ] }, diff --git a/source/_data/jsdocs-pkjs.json b/source/_data/jsdocs-pkjs.json index 36a141c..25a45f6 100644 --- a/source/_data/jsdocs-pkjs.json +++ b/source/_data/jsdocs-pkjs.json @@ -97,7 +97,7 @@ "column": 24 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "namespace", "name": "Pebble", @@ -1700,7 +1700,7 @@ "column": 55 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "params": [ { @@ -2130,7 +2130,7 @@ "column": 41 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "params": [ { @@ -2534,7 +2534,7 @@ "column": 58 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "params": [ { @@ -2980,7 +2980,7 @@ "column": 42 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "params": [ { @@ -3288,7 +3288,7 @@ "column": 66 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "params": [ { @@ -3753,7 +3753,7 @@ "column": 65 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "returns": [ { @@ -4365,7 +4365,7 @@ "column": 40 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "params": [ { @@ -4756,7 +4756,7 @@ "column": 62 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "params": [ { @@ -5068,7 +5068,7 @@ "column": 69 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "params": [ { @@ -5402,7 +5402,7 @@ "column": 71 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "params": [ { @@ -5774,7 +5774,7 @@ "column": 66 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "params": [ { @@ -6042,7 +6042,7 @@ "column": 43 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "returns": [ { @@ -6286,7 +6286,7 @@ "column": 40 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "returns": [ { @@ -6469,7 +6469,7 @@ "column": 38 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "returns": [ { @@ -6675,7 +6675,7 @@ "column": 77 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "params": [ { @@ -7028,7 +7028,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "TimelineTopicsCallback", @@ -7332,7 +7332,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "params": [ { @@ -7523,7 +7523,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "AppGlanceReloadFailureCallback", @@ -7762,7 +7762,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "AppMessageAckCallback", @@ -8003,7 +8003,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "AppMessageNackCallback", @@ -8300,7 +8300,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "EventCallback", @@ -8981,7 +8981,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "TimelineTokenCallback", @@ -9174,7 +9174,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "AppGlanceReloadSuccessCallback", @@ -9493,7 +9493,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "PostMessageCallback", @@ -9933,7 +9933,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "PostMessageErrorCallback", @@ -10373,7 +10373,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "PostMessageConnectedCallback", @@ -10739,7 +10739,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "PostMessageDisconnectedCallback", @@ -11055,7 +11055,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "WatchInfo", @@ -11861,7 +11861,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "AppGlanceSlice", diff --git a/source/_data/jsdocs-rocky.json b/source/_data/jsdocs-rocky.json index c77a929..8c6babc 100644 --- a/source/_data/jsdocs-rocky.json +++ b/source/_data/jsdocs-rocky.json @@ -404,7 +404,7 @@ "column": 2 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "kind": "namespace", "name": "CanvasRenderingContext2D", @@ -568,7 +568,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "kind": "typedef", "name": "TextMetrics", @@ -1360,7 +1360,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "name": "fillStyle", "memberof": "CanvasRenderingContext2D", @@ -1551,7 +1551,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "kind": "typedef", "name": "Canvas", @@ -2471,7 +2471,7 @@ "column": 13 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "name": "strokeStyle", "memberof": "CanvasRenderingContext2D", @@ -2619,7 +2619,7 @@ "column": 8 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "name": "canvas", "memberof": "CanvasRenderingContext2D", @@ -2794,7 +2794,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "name": "lineWidth", "memberof": "CanvasRenderingContext2D", @@ -4386,7 +4386,7 @@ "column": 6 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "name": "font", "memberof": "CanvasRenderingContext2D", @@ -5042,7 +5042,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "name": "textAlign", "memberof": "CanvasRenderingContext2D", @@ -5359,7 +5359,7 @@ "column": 71 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "params": [ { @@ -5920,7 +5920,7 @@ "column": 70 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "params": [ { @@ -6481,7 +6481,7 @@ "column": 72 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "params": [ { @@ -7004,7 +7004,7 @@ "column": 71 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "params": [ { @@ -7490,7 +7490,7 @@ "column": 58 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "returns": [ { @@ -7793,7 +7793,7 @@ "column": 52 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "name": "beginPath", "kind": "function", @@ -7940,7 +7940,7 @@ "column": 52 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "name": "closePath", "kind": "function", @@ -8171,7 +8171,7 @@ "column": 53 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "params": [ { @@ -8524,7 +8524,7 @@ "column": 53 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "params": [ { @@ -9352,7 +9352,7 @@ "column": 90 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "params": [ { @@ -10157,7 +10157,7 @@ "column": 66 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "params": [ { @@ -10580,7 +10580,7 @@ "column": 47 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "name": "fill", "kind": "function", @@ -10761,7 +10761,7 @@ "column": 49 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "name": "stroke", "kind": "function", @@ -10904,7 +10904,7 @@ "column": 47 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "name": "save", "kind": "function", @@ -11049,7 +11049,7 @@ "column": 50 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "name": "restore", "kind": "function", @@ -11429,7 +11429,7 @@ "column": 110 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/CanvasRenderingContext2D.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/CanvasRenderingContext2D.js" }, "params": [ { @@ -12229,7 +12229,7 @@ "column": 27 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/Console.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/Console.js" }, "kind": "namespace", "name": "console", @@ -12382,7 +12382,7 @@ "column": 33 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/Console.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/Console.js" }, "params": [ { @@ -12622,7 +12622,7 @@ "column": 34 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/Console.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/Console.js" }, "params": [ { @@ -12862,7 +12862,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/Console.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/Console.js" }, "params": [ { @@ -14713,7 +14713,7 @@ "column": 24 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/Date.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/Date.js" }, "kind": "namespace", "name": "Date", @@ -14860,7 +14860,7 @@ "column": 52 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/Date.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/Date.js" }, "params": [ { @@ -15145,7 +15145,7 @@ "column": 56 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/Date.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/Date.js" }, "params": [ { @@ -15430,7 +15430,7 @@ "column": 41 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/Date.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/Date.js" }, "params": [ { @@ -15730,7 +15730,7 @@ "column": 38 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/global.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/global.js" }, "returns": [ { @@ -16088,7 +16088,7 @@ "column": 39 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/global.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/global.js" }, "params": [ { @@ -16315,7 +16315,7 @@ "column": 39 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/global.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/global.js" }, "returns": [ { @@ -16673,7 +16673,7 @@ "column": 41 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/global.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/global.js" }, "params": [ { @@ -16897,7 +16897,7 @@ "column": 2 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "kind": "namespace", "name": "rocky", @@ -17085,7 +17085,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "kind": "typedef", "name": "RockyPostMessageErrorCallback", @@ -17522,7 +17522,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "kind": "typedef", "name": "RockyPostMessageConnectedCallback", @@ -17835,7 +17835,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "kind": "typedef", "name": "WatchInfo", @@ -18579,7 +18579,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "name": "watchInfo", "memberof": "rocky", @@ -18781,7 +18781,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "kind": "typedef", "name": "RockyMemoryPressureCallback", @@ -19954,7 +19954,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "kind": "typedef", "name": "RockyPostMessageDisconnectedCallback", @@ -20285,7 +20285,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "kind": "typedef", "name": "UserPreferences", @@ -20830,7 +20830,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "kind": "typedef", "name": "RockyDrawCallback", @@ -21243,7 +21243,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "kind": "typedef", "name": "RockyMessageCallback", @@ -21821,7 +21821,7 @@ "column": 11 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "kind": "typedef", "name": "RockyTickCallback", @@ -22216,7 +22216,7 @@ "column": 17 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "name": "userPreferences", "memberof": "rocky", @@ -23908,7 +23908,7 @@ "column": 40 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "params": [ { @@ -24251,7 +24251,7 @@ "column": 54 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "params": [ { @@ -24613,7 +24613,7 @@ "column": 57 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "params": [ { @@ -25014,7 +25014,7 @@ "column": 41 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "params": [ { @@ -25428,7 +25428,7 @@ "column": 39 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "params": [ { @@ -25789,7 +25789,7 @@ "column": 35 } }, - "file": "/Users/devsite/Pebble/developer.getpebble.com/js-docs/rocky/rocky.js" + "file": "/Users/devsite/Pebble/developer.rebble.io/js-docs/rocky/rocky.js" }, "name": "requestDraw", "kind": "function", diff --git a/source/_guides/appstore-publishing/appstore-assets.md b/source/_guides/appstore-publishing/appstore-assets.md index d2c72e0..9067322 100644 --- a/source/_guides/appstore-publishing/appstore-assets.md +++ b/source/_guides/appstore-publishing/appstore-assets.md @@ -22,7 +22,7 @@ order: 3 --- A number of graphical assets are required when publishing an app on the -[Developer Portal](https://dev-portal.getpebble.com/), such as a marketing +[Developer Portal](https://dev-portal.rebble.io/), such as a marketing banners. The resources on this page serve to help developers give these assets a more authentic feel. diff --git a/source/_guides/appstore-publishing/index.md b/source/_guides/appstore-publishing/index.md index d8fa281..c89b0ef 100644 --- a/source/_guides/appstore-publishing/index.md +++ b/source/_guides/appstore-publishing/index.md @@ -25,7 +25,7 @@ hide_comments: true When a developer is happy that their app is feature-complete and stable, they can upload the compiled `.pbw` file to the -[Developer Portal](https://dev-portal.getpebble.com) to make it available on the +[Developer Portal](https://dev-portal.rebble.io) to make it available on the Pebble appstore for all users with compatible watches to share and enjoy. In order to be successfully listed in the Pebble appstore the developer must: diff --git a/source/_guides/appstore-publishing/preparing-a-submission.md b/source/_guides/appstore-publishing/preparing-a-submission.md index dff4d46..99765a8 100644 --- a/source/_guides/appstore-publishing/preparing-a-submission.md +++ b/source/_guides/appstore-publishing/preparing-a-submission.md @@ -21,7 +21,7 @@ order: 0 --- Once a new Pebble watchface or watchapp has been created, the -[Pebble Developer Portal](https://dev-portal.getpebble.com/) allows the +[Pebble Developer Portal](https://dev-portal.rebble.io/) allows the developer to publish their creation to the appstore either publicly, or privately. The appstore is built into the official mobile apps and means that every new app can be found and also featured for increased exposure and @@ -97,7 +97,7 @@ timeline' to obtain API keys used for pushing pins. See the Once published, the key to growth in an app is through promotion. Aside from users recommending the app to each other, posting on websites such as the -[Pebble Forums](https://forums.getpebble.com/categories/watchapp-directory), +[Pebble Forums](https://forums.rebble.io/categories/watchapp-directory), [Reddit](https://www.reddit.com/r/pebble), and [Twitter](https://twitter.com) can help increase exposure. diff --git a/source/_guides/appstore-publishing/publishing-an-app.md b/source/_guides/appstore-publishing/publishing-an-app.md index ff54a00..faa36a3 100644 --- a/source/_guides/appstore-publishing/publishing-an-app.md +++ b/source/_guides/appstore-publishing/publishing-an-app.md @@ -21,13 +21,13 @@ order: 1 --- When an app is ready for publishing, the `.pbw` file needs to be uploaded to the -Pebble [Developer Portal](https://dev-portal.getpebble.com/), where a listing is +Pebble [Developer Portal](https://dev-portal.rebble.io/), where a listing is created. Depending on the type of app, different sets of additional resources are required. These resources are then used to generate the listing pages visible to potential users in the Pebble appstore, which is embedded within the Pebble mobile app. -You can also view the [watchfaces](http://apps.getpebble.com/en_US/watchfaces) -and [watchapps](http://apps.getpebble.com/en_US/watchapps) from a desktop +You can also view the [watchfaces](http://apps.rebble.io/en_US/watchfaces) +and [watchapps](http://apps.rebble.io/en_US/watchapps) from a desktop computer, as well as perform searches and get shareable links. diff --git a/source/_guides/best-practices/conserving-battery-life.md b/source/_guides/best-practices/conserving-battery-life.md index 38f1eb3..eb3dda7 100644 --- a/source/_guides/best-practices/conserving-battery-life.md +++ b/source/_guides/best-practices/conserving-battery-life.md @@ -41,7 +41,7 @@ apps are discussed in this guide, alongside suggestions to help avoid them. ## Battery Ratings -Any app published in the [Developer Portal](https://dev-portal.getpebble.com) +Any app published in the [Developer Portal](https://dev-portal.rebble.io) will have a battery grade associated with it, once a minimum threshold of data has been collected. This can be used to get a rough idea of how much battery power the app consumes. For watchfaces and apps that will be launched for long diff --git a/source/_guides/communication/advanced-communication.md b/source/_guides/communication/advanced-communication.md index 9b05419..4f49d96 100644 --- a/source/_guides/communication/advanced-communication.md +++ b/source/_guides/communication/advanced-communication.md @@ -446,7 +446,7 @@ of how to display a compressed PNG image will be discussed here. The image that will be displayed is [the HTML 5 logo](https://www.w3.org/html/logo/): -![](http://developer.getpebble.com.s3.amazonaws.com/assets/other/html5-logo-small.png) +![](http://developer.rebble.io.s3.amazonaws.com/assets/other/html5-logo-small.png) > Note: The above image has been resized and palettized for compatibility. @@ -456,7 +456,7 @@ data in the correct format: ```js function downloadImage() { - var url = 'http://developer.getpebble.com.s3.amazonaws.com/assets/other/html5-logo-small.png'; + var url = 'http://developer.rebble.io.s3.amazonaws.com/assets/other/html5-logo-small.png'; var request = new XMLHttpRequest(); request.onload = function() { diff --git a/source/_guides/communication/using-the-sports-api.md b/source/_guides/communication/using-the-sports-api.md index 92c49f5..675c622 100644 --- a/source/_guides/communication/using-the-sports-api.md +++ b/source/_guides/communication/using-the-sports-api.md @@ -33,7 +33,7 @@ formats. The goal is to allow fitness and golf mobile apps to integrate with Pebble to show the wearer data about their activity without needing to create and maintain an additional app for Pebble. An example of a popular app that uses this approach is the -[Runkeeper](http://apps.getpebble.com/en_US/application/52e05bd5d8561de307000039) +[Runkeeper](http://apps.rebble.io/en_US/application/52e05bd5d8561de307000039) app. The Sports and Golf apps are launched, closed, and controlled by PebbleKit in an diff --git a/source/_guides/events-and-services/health.md b/source/_guides/events-and-services/health.md index 8f88f0c..cb1c422 100644 --- a/source/_guides/events-and-services/health.md +++ b/source/_guides/events-and-services/health.md @@ -31,7 +31,7 @@ related_examples: url: https://github.com/pebble-examples/simple-health-example --- -[Pebble Health](https://blog.getpebble.com/2015/12/15/health/) provides builtin +[Pebble Health](https://blog.rebble.io/2015/12/15/health/) provides builtin health data tracking to allow users to improve their activity and sleep habits. With SDK 3.9, the ``HealthService`` API opens this data up to developers to include and use within their apps. For example, a watchface could display a @@ -47,7 +47,7 @@ apps, and API calls will return values to reflect this. In addition, any app using the ``HealthService`` API must declare the 'health' capability in order to be accepted by the -[developer portal](https://dev-portal.getpebble.com/). This can be done in +[developer portal](https://dev-portal.rebble.io/). This can be done in CloudPebble 'Settings', or in `package.json` in the local SDK: ```js diff --git a/source/_guides/migration/pebblekit-ios-3.md b/source/_guides/migration/pebblekit-ios-3.md index 09e2c46..628b6bf 100644 --- a/source/_guides/migration/pebblekit-ios-3.md +++ b/source/_guides/migration/pebblekit-ios-3.md @@ -94,7 +94,7 @@ has crashed, or was stopped/killed by iOS because it used too much memory. 3. See the [Breaking API Changes](#breaking-api-changes) section below. 4. When submitting the iOS companion to the - [Pebble appstore](https://dev-portal.getpebble.com/), make sure to check the + [Pebble appstore](https://dev-portal.rebble.io/), make sure to check the checkbox shown below. ![](/images/guides/migration/companion-checkbox.png) diff --git a/source/_guides/pebble-timeline/index.md b/source/_guides/pebble-timeline/index.md index 293c377..5b1aff4 100644 --- a/source/_guides/pebble-timeline/index.md +++ b/source/_guides/pebble-timeline/index.md @@ -51,7 +51,7 @@ and notifications from any web-based external service. ## Enabling a New App To push pins via the Pebble timeline API, a first version of a new app must be -uploaded to the [Developer Portal](https://dev-portal.getpebble.com). This is +uploaded to the [Developer Portal](https://dev-portal.rebble.io). This is required so that the appstore can identify the app's UUID, and so generate sandbox and production API keys for the developer to push pins to. It is then possible to use the timeline web API in sandbox mode for development or in @@ -74,7 +74,7 @@ The production mode is used when a user installs the app from the Pebble appstore. Use the two respective API key types for these purposes. If whitelisting is enabled in sandbox mode, the developer's account is automatically included, and they can add more Pebble users by adding the users' -email addresses in the [Developer Portal](https://dev-portal.getpebble.com). +email addresses in the [Developer Portal](https://dev-portal.rebble.io). If preferred, it is possible to enable whitelisting to limit this access to only users involved in development and testing of the app. Enter the email addresses diff --git a/source/_guides/pebble-timeline/timeline-public.md b/source/_guides/pebble-timeline/timeline-public.md index b46c57c..26a7057 100644 --- a/source/_guides/pebble-timeline/timeline-public.md +++ b/source/_guides/pebble-timeline/timeline-public.md @@ -58,7 +58,7 @@ To create a pin, send a `PUT` request to the following URL scheme, where `ID` is the `id` of the pin object. For example 'reservation-1395203': ```text -PUT https://timeline-api.getpebble.com/v1/user/pins/ID +PUT https://timeline-api.rebble.io/v1/user/pins/ID ``` Use the following headers, where `X-User-Token` is the user's @@ -90,7 +90,7 @@ sample of an object is shown below: #### Curl Example ```bash -$ curl -X PUT https://timeline-api.getpebble.com/v1/user/pins/reservation-1395203 \ +$ curl -X PUT https://timeline-api.rebble.io/v1/user/pins/reservation-1395203 \ --header "Content-Type: application/json" \ --header "X-User-Token: a70b23d3820e9ee640aeb590fdf03a56" \ -d @pin.json @@ -104,7 +104,7 @@ To update a pin, send a `PUT` request with a new JSON object with the **same `id`**. ```text -PUT https://timeline-api.getpebble.com/v1/user/pins/reservation-1395203 +PUT https://timeline-api.rebble.io/v1/user/pins/reservation-1395203 ``` @@ -134,7 +134,7 @@ included. The example below shows an event updated with a new `time`: #### Curl Example ```bash -$ curl -X PUT https://timeline-api.getpebble.com/v1/user/pins/reservation-1395203 \ +$ curl -X PUT https://timeline-api.rebble.io/v1/user/pins/reservation-1395203 \ --header "Content-Type: application/json" \ --header "X-User-Token: a70b23d3820e9ee640aeb590fdf03a56" \ -d @pin.json @@ -147,7 +147,7 @@ OK Delete a pin by issuing a HTTP `DELETE` request. ```text -DELETE https://timeline-api.getpebble.com/v1/user/pins/reservation-1395203 +DELETE https://timeline-api.rebble.io/v1/user/pins/reservation-1395203 ``` Remember to include the user token in the headers. @@ -164,7 +164,7 @@ event's details so that it can remain visible and useful to the user. #### Curl Example ```bash -$ curl -X DELETE https://timeline-api.getpebble.com/v1/user/pins/reservation-1395203 \ +$ curl -X DELETE https://timeline-api.rebble.io/v1/user/pins/reservation-1395203 \ --header "Content-Type: application/json" \ --header "X-User-Token: a70b23d3820e9ee640aeb590fdf03a56" OK @@ -178,7 +178,7 @@ OK It is possible to send a pin (and updates) to multiple users at once by modifying the `PUT` header to include `X-Pin-Topics` (the topics a user must be subscribed to in order to receive this pin) and `X-API-Key` (issued by the -[Developer Portal](https://dev-portal.getpebble.com/)). In this case, the URL is +[Developer Portal](https://dev-portal.rebble.io/)). In this case, the URL is also modified: ```text @@ -211,7 +211,7 @@ The pin body remains the same: #### Curl Example ```bash -$ curl -X PUT https://timeline-api.getpebble.com/v1/shared/pins/giants-game-1 \ +$ curl -X PUT https://timeline-api.rebble.io/v1/shared/pins/giants-game-1 \ --header "Content-Type: application/json" \ --header "X-API-Key: fbbd2e4c5a8e1dbef2b00b97bf83bdc9" \ --header "X-Pin-Topics: giants,redsox,baseball" \ @@ -240,7 +240,7 @@ X-API-Key: fbbd2e4c5a8e1dbef2b00b97bf83bdc9 #### Curl Example ```bash -$ curl -X DELETE https://timeline-api.getpebble.com/v1/shared/pins/giants-game-1 \ +$ curl -X DELETE https://timeline-api.rebble.io/v1/shared/pins/giants-game-1 \ --header "Content-Type: application/json" \ --header "X-API-Key: fbbd2e4c5a8e1dbef2b00b97bf83bdc9" \ OK @@ -266,7 +266,7 @@ X-User-Token: a70b23d3820e9ee640aeb590fdf03a56 #### Curl Example ```bash -$ curl -X GET https://timeline-api.getpebble.com/v1/user/subscriptions \ +$ curl -X GET https://timeline-api.rebble.io/v1/user/subscriptions \ --header "X-User-Token: a70b23d3820e9ee640aeb590fdf03a56" \ ``` @@ -320,7 +320,7 @@ Check the returned HTTP headers of any API request to see the current rate limit status: ```text -$ curl -i https://timeline-api.getpebble.com/v1/user/pins/reservation-1395203 +$ curl -i https://timeline-api.rebble.io/v1/user/pins/reservation-1395203 HTTP/1.1 429 OK date: Wed, 13 May 2015 21:36:58 GMT diff --git a/source/_guides/tools-and-resources/cloudpebble.md b/source/_guides/tools-and-resources/cloudpebble.md index 144956e..d316681 100644 --- a/source/_guides/tools-and-resources/cloudpebble.md +++ b/source/_guides/tools-and-resources/cloudpebble.md @@ -166,7 +166,7 @@ Pebble account. In addition to running apps, the 'Compilation' screen also offers the ability to view app log output and capture screenshots with the appropriate buttons. Lastly, the `.pbw` bundle can also be obtained for testing and distribution in -the [Developer Portal](https://dev-portal.getpebble.com/). +the [Developer Portal](https://dev-portal.rebble.io/). ### Interacting with the Emulator diff --git a/source/_guides/user-interfaces/appglance-rest.md b/source/_guides/user-interfaces/appglance-rest.md index 251d63f..e24cab7 100644 --- a/source/_guides/user-interfaces/appglance-rest.md +++ b/source/_guides/user-interfaces/appglance-rest.md @@ -58,7 +58,7 @@ API. To create a slice, send a `PUT` request to the following URL scheme: ```text -PUT https://timeline-api.getpebble.com/v1/user/glance +PUT https://timeline-api.rebble.io/v1/user/glance ``` Use the following headers, where `X-User-Token` is the user's @@ -90,7 +90,7 @@ sample of an object is shown below: #### Curl Example ```bash -$ curl -X PUT https://timeline-api.getpebble.com/v1/user/glance \ +$ curl -X PUT https://timeline-api.rebble.io/v1/user/glance \ --header "Content-Type: application/json" \ --header "X-User-Token: a70b23d3820e9ee640aeb590fdf03a56" \ -d @glance.json diff --git a/source/_includes/sdk/steps_help.md b/source/_includes/sdk/steps_help.md index 4fcf217..c7ace29 100644 --- a/source/_includes/sdk/steps_help.md +++ b/source/_includes/sdk/steps_help.md @@ -18,7 +18,7 @@ If you have any issues with downloading or installing the Pebble SDK, you should take a look at the -[SDK Help category](https://forums.getpebble.com/categories/watchface-sdk-help) +[SDK Help category](https://forums.rebble.io/categories/watchface-sdk-help) on our forums. Alternatively, you can [send us a message](/contact/) letting us know what diff --git a/source/_layouts/blog/post.html b/source/_layouts/blog/post.html index e03493d..44bbb66 100644 --- a/source/_layouts/blog/post.html +++ b/source/_layouts/blog/post.html @@ -25,7 +25,7 @@

{{ page.title }}

{{ content }}
-
+
You need JavaScript enabled to read and post comments.
diff --git a/source/_layouts/docs/c.html b/source/_layouts/docs/c.html index 85051bd..9c71045 100644 --- a/source/_layouts/docs/c.html +++ b/source/_layouts/docs/c.html @@ -236,7 +236,7 @@

Getting Help

You can either take advantage of our awesome developer community and - check out the SDK Help forums, + check out the SDK Help forums, or you can send us a message through the website!

diff --git a/source/_layouts/docs/js.html b/source/_layouts/docs/js.html index 00573b0..e63a2d0 100644 --- a/source/_layouts/docs/js.html +++ b/source/_layouts/docs/js.html @@ -124,7 +124,7 @@

Getting Help

You can either take advantage of our awesome developer community and - check out the SDK Help forums, + check out the SDK Help forums, or you can send us a message through the website!

diff --git a/source/_layouts/guides/default.html b/source/_layouts/guides/default.html index 52f3ae2..b5e4cc2 100644 --- a/source/_layouts/guides/default.html +++ b/source/_layouts/guides/default.html @@ -68,7 +68,7 @@

{{ page.title }}

{% unless page.hide_comments %} -
+
You need JavaScript enabled to read and post comments.
{% endunless %} diff --git a/source/_layouts/guides/wide.html b/source/_layouts/guides/wide.html index 3e4c6b1..77c6a0c 100644 --- a/source/_layouts/guides/wide.html +++ b/source/_layouts/guides/wide.html @@ -59,7 +59,7 @@

{{ page.title }}

{{ content }}
{% unless page.hide_comments %} -
+
You need JavaScript enabled to read and post comments.
{% endunless %} diff --git a/source/_posts/2013-12-20-Pebble-Javascript-Tips-and-Tricks.md b/source/_posts/2013-12-20-Pebble-Javascript-Tips-and-Tricks.md index 2761aaa..feded74 100644 --- a/source/_posts/2013-12-20-Pebble-Javascript-Tips-and-Tricks.md +++ b/source/_posts/2013-12-20-Pebble-Javascript-Tips-and-Tricks.md @@ -167,7 +167,7 @@ If the UI rendering is delayed, the user will get no feedbacks for their action There is a lot of information on the web on how to build webpages that display nicely on mobile devices. iOS and Android both use WebKit based browsers which makes things easier, but it is safe to assume that you will never get the exact same look - and you will always need to test on both platforms. Even if you do not own both devices, you can use the built-in browser in the iOS or Android emulators to test your configuration webpage. -Also consider using framework such as [JQuery Mobile](http://jquerymobile.com/) or [Sencha Touch](http://www.sencha.com/products/touch/) to make your life easier. They provide easy to use components and page templates. If you do not want to write any html, [setpebble.com](http://www.setpebble.com) is another great option that we have [discussed on the blog](/blog/2013/12/02/SetPebble-By-Matt-Clark/) previously. +Also consider using framework such as [JQuery Mobile](http://jquerymobile.com/) or [Sencha Touch](http://www.sencha.com/products/touch/) to make your life easier. They provide easy to use components and page templates. If you do not want to write any html, [setrebble.io](http://www.setrebble.io) is another great option that we have [discussed on the blog](/blog/2013/12/02/SetPebble-By-Matt-Clark/) previously. ### Be prepared for the network to be unreachable during a UI configuration attempt diff --git a/source/_posts/2014-01-12-Using-JSHint-For-Pebble-Development.md b/source/_posts/2014-01-12-Using-JSHint-For-Pebble-Development.md index 7b93d95..da078dc 100644 --- a/source/_posts/2014-01-12-Using-JSHint-For-Pebble-Development.md +++ b/source/_posts/2014-01-12-Using-JSHint-For-Pebble-Development.md @@ -126,4 +126,4 @@ Now simply run `pebble build` and if there is anything wrong in your JS file, th CloudPebble users are encouraged to download and install JSHint on their machine. You can use the [web interface](http://www.jshint.com/) and set most of the recommended options but you will never get 100% correctness because there is no way to declare an extra global variable (the `Pebble` object). -Good news is [CloudPebble is opensource](https://github.com/CloudPebble/CloudPebble/)! We would be happy to offer a brand new [Pebble Steel](http://www.getpebble.com/steel) to the developer who will submit and get through Katherine's approval a pull request to add jshint support in CloudPebble ;) +Good news is [CloudPebble is opensource](https://github.com/CloudPebble/CloudPebble/)! We would be happy to offer a brand new [Pebble Steel](http://www.rebble.io/steel) to the developer who will submit and get through Katherine's approval a pull request to add jshint support in CloudPebble ;) diff --git a/source/_posts/2014-05-23-FreeRTOS-Modifications-From-Pebble.md b/source/_posts/2014-05-23-FreeRTOS-Modifications-From-Pebble.md index 667e112..3b1a542 100644 --- a/source/_posts/2014-05-23-FreeRTOS-Modifications-From-Pebble.md +++ b/source/_posts/2014-05-23-FreeRTOS-Modifications-From-Pebble.md @@ -25,7 +25,7 @@ application environment for PebbleOS 2.0 as well as to make Pebble easier to monitor and debug. The changes are available -[as a tarball](http://assets.getpebble.com.s3-website-us-east-1.amazonaws.com/dev-portal/FreeRTOS-8.0.0-Pebble.tar.gz) +[as a tarball](http://assets.rebble.io.s3-website-us-east-1.amazonaws.com/dev-portal/FreeRTOS-8.0.0-Pebble.tar.gz) . Read on to learn more about the changes and why they were made. diff --git a/source/_posts/2014-08-26-Getting-Ready-for-Automatic-App-Updates.md b/source/_posts/2014-08-26-Getting-Ready-for-Automatic-App-Updates.md index d20fb15..7029b88 100644 --- a/source/_posts/2014-08-26-Getting-Ready-for-Automatic-App-Updates.md +++ b/source/_posts/2014-08-26-Getting-Ready-for-Automatic-App-Updates.md @@ -119,4 +119,4 @@ static void migrate_persist(void) { Obviously, that is just an example; you will have to deal with your own situation as appropriate. If you have further questions about getting ready for automatic app updates, let us know! [Contact us](/contact) or -[post on our forums](https://forums.getpebble.com/categories/developer-discussion). +[post on our forums](https://forums.rebble.io/categories/developer-discussion). diff --git a/source/_posts/2014-10-10-FreeRTOS-Modifications-From-Pebble-v2.md b/source/_posts/2014-10-10-FreeRTOS-Modifications-From-Pebble-v2.md index bbfa67c..31ab166 100644 --- a/source/_posts/2014-10-10-FreeRTOS-Modifications-From-Pebble-v2.md +++ b/source/_posts/2014-10-10-FreeRTOS-Modifications-From-Pebble-v2.md @@ -24,7 +24,7 @@ recent modifications to the FreeRTOS project. Pebble has made a few minor changes to FreeRTOS to enable Background Workers for PebbleOS 2.6 as well as to make Pebble easier to monitor and debug. -The changes are available [as a tarball](http://assets.getpebble.com.s3-website-us-east-1.amazonaws.com/dev-portal/FreeRTOS-8.0.0-Pebble.2.tar.gz). +The changes are available [as a tarball](http://assets.rebble.io.s3-website-us-east-1.amazonaws.com/dev-portal/FreeRTOS-8.0.0-Pebble.2.tar.gz). Below is a changelog of the modifications since the last time we released our fork of the FreeRTOS code back in May. diff --git a/source/_posts/2014-12-19-Leverage-Android-Actionable-Notifications.md b/source/_posts/2014-12-19-Leverage-Android-Actionable-Notifications.md index fd2c2e9..b205ee6 100644 --- a/source/_posts/2014-12-19-Leverage-Android-Actionable-Notifications.md +++ b/source/_posts/2014-12-19-Leverage-Android-Actionable-Notifications.md @@ -214,7 +214,7 @@ guide][android-development-notifications]. Both are great resources to make the most of notifications! -[android-beta]: https://blog.getpebble.com/2014/12/16/ad-23/ +[android-beta]: https://blog.rebble.io/2014/12/16/ad-23/ [beta-channel]: /blog/2014/06/12/Android-Beta-Channel/ [android-patterns-notifications]: http://developer.android.com/design/patterns/notifications.html [android-development-notifications]: http://developer.android.com/guide/topics/ui/notifiers/notifications.html diff --git a/source/_posts/2015-03-20-Getting-Started-With-Timeline.md b/source/_posts/2015-03-20-Getting-Started-With-Timeline.md index 7c88be2..d31d7cc 100644 --- a/source/_posts/2015-03-20-Getting-Started-With-Timeline.md +++ b/source/_posts/2015-03-20-Getting-Started-With-Timeline.md @@ -37,7 +37,7 @@ to get information about our packages. We'll go over the specifics of how to: - Use the [PebbleKit JS timeline APIs](/guides/pebble-timeline/timeline-js/) - Setup a server that utilizes the [pebble-api](https://www.npmjs.com/package/pebble-api) npm module -- Enable timeline for the app through the [Developer Portal](https://dev-portal.getpebble.com) +- Enable timeline for the app through the [Developer Portal](https://dev-portal.rebble.io) ## Setup @@ -271,7 +271,7 @@ and enable timeline. In order to enable timeline, perform the following steps: 0. Make sure you have a new and unique uuid. If you used the example from GitHub you will have to change it in your `appinfo.json`. To generate a new UUID, [you can use this tool](https://www.uuidgenerator.net/version4) -1. Login to the [Developer Portal](https://dev-portal.getpebble.com) +1. Login to the [Developer Portal](https://dev-portal.rebble.io) 2. Click the Add Watchapp button on the portal (you don't need to upload any image assets) 3. Upload your pbw by adding a release (located in the build folder of your project) 4. Click the Enable Timeline button diff --git a/source/_posts/2015-10-29-ios-migration.md b/source/_posts/2015-10-29-ios-migration.md index 2efb5cc..6fe9328 100644 --- a/source/_posts/2015-10-29-ios-migration.md +++ b/source/_posts/2015-10-29-ios-migration.md @@ -89,7 +89,7 @@ text to the dialog with `NSBluetoothPeripheralUsageDescription` to your ``` ### Specify that your app is built with PebbleKit 3.0 in the Developer Portal -Go to edit the companion app listing in your [developer portal](https://dev-portal.getpebble.com/developer) page and check the box for "Was this iOS app compiled with PebbleKit iOS 3.0 or newer?" This way, users on Pebble Time Round will be able to see your app in the appstore. +Go to edit the companion app listing in your [developer portal](https://dev-portal.rebble.io/developer) page and check the box for "Was this iOS app compiled with PebbleKit iOS 3.0 or newer?" This way, users on Pebble Time Round will be able to see your app in the appstore. ![](/images/blog/checkbox.png) diff --git a/source/_posts/2015-11-10-Nuance-Brings-Pebble-The-Freedom-Of-Speech.md b/source/_posts/2015-11-10-Nuance-Brings-Pebble-The-Freedom-Of-Speech.md index ce59f64..0540836 100644 --- a/source/_posts/2015-11-10-Nuance-Brings-Pebble-The-Freedom-Of-Speech.md +++ b/source/_posts/2015-11-10-Nuance-Brings-Pebble-The-Freedom-Of-Speech.md @@ -148,18 +148,18 @@ the code needs to be in order to use the API. Here’s a small sample of some of the watchapps which are already available in the Pebble appstore which utilise the Dictation API. -* [Voice2Timeline](http://apps.getpebble.com/en_US/application/561f9188bcb7ac903a00005b) +* [Voice2Timeline](http://apps.rebble.io/en_US/application/561f9188bcb7ac903a00005b) is a handy tool for quickly creating pins on your timeline by using your voice. It already works in 6 different languages. You can leave notes in the past, or even create reminders for the future (e.g. “Don’t forget the milk in 1 hour”). -* [Translate (Vox Populi)](http://apps.getpebble.com/en_US/application/561ff3cbbcb7aca6250000a3) +* [Translate (Vox Populi)](http://apps.rebble.io/en_US/application/561ff3cbbcb7aca6250000a3) allows a user to translate short phrases and words into a different language. It uses the [Yandex](https://translate.yandex.com/) machine translator API which supports more than 60 different languages. -* [Checklist](http://apps.getpebble.com/en_US/application/5620e876768e7ada4e00007a) +* [Checklist](http://apps.rebble.io/en_US/application/5620e876768e7ada4e00007a) is a really simple tool which generates a list of items using your voice. It even allows you to enter multiple items at once, by specifying a comma or period. You can easily mark them as completed by pressing the ‘select’ button diff --git a/source/_posts/2016-03-07-Take-the-Pebble-Health-API-in-your-Stride.md b/source/_posts/2016-03-07-Take-the-Pebble-Health-API-in-your-Stride.md index 47c2ca1..ba1c24a 100644 --- a/source/_posts/2016-03-07-Take-the-Pebble-Health-API-in-your-Stride.md +++ b/source/_posts/2016-03-07-Take-the-Pebble-Health-API-in-your-Stride.md @@ -20,11 +20,11 @@ tags: --- I've been desperate to write a blog post about the Pebble [HealthService API] -(https://developer.pebble.com/docs/c/Foundation/Event_Service/HealthService/) +(https://developer.rebble.io/docs/c/Foundation/Event_Service/HealthService/) since it's initial release last month, and now I can finally share its awesomeness with you. I'm also going to show you how you can use this exciting new API to build an ultra-cool clone of the [Stride watchface] -(https://apps.getpebble.com/en_US/application/56b15c5c9c4b20ed5300006c) by +(https://apps.rebble.io/en_US/application/56b15c5c9c4b20ed5300006c) by Pebble. @@ -50,7 +50,7 @@ available to help shape my future lifestyle decisions. ## What health data is available? The HealthService API exposes various [`HealthMetric`] -(https://developer.pebble.com/docs/c/Foundation/Event_Service/HealthService/#HealthMetric) +(https://developer.rebble.io/docs/c/Foundation/Event_Service/HealthService/#HealthMetric) values which relate to the user being physically active, or sleeping. - `HealthMetricStepCount` - The number of steps counted. @@ -81,9 +81,9 @@ health api, your app will be terminated. 2. Check if the user has enabled Pebble Health in the Pebble Health app settings and that there is any health data available. This is done by checking the [`HealthServiceAccessibilityMask`] -(https://developer.pebble.com/docs/c/Foundation/Event_Service/HealthService/#HealthServiceAccessibilityMask) +(https://developer.rebble.io/docs/c/Foundation/Event_Service/HealthService/#HealthServiceAccessibilityMask) using [`health_service_metric_accessible()`] -(https://developer.pebble.com/docs/c/Foundation/Event_Service/HealthService/#health_service_metric_accessible). +(https://developer.rebble.io/docs/c/Foundation/Event_Service/HealthService/#health_service_metric_accessible). Here is a basic example of the steps you should take before attempting to access health data: @@ -141,7 +141,7 @@ going to need to query the HealthService API to retrieve: The step goal only needs to be updated once per day and we're going to use the [`HealthEventMovementUpdate`] -(https://developer.pebble.com/guides/pebble-apps/sensors/health/#subscribing-to-healthservice-events) +(https://developer.rebble.io/guides/pebble-apps/sensors/health/#subscribing-to-healthservice-events) event to trigger an update for the other data. This event will probably trigger multiple times per minute, so if you’re looking to conserve energy, you could manually update the data. Stride also changes the color of the text and icon if @@ -162,10 +162,10 @@ rectangularly, checkout the [health-watchface on Github] The dots layer update procedure calculates the coordinates for each point using [`gpoint_from_polar()`] -(https://developer.pebble.com/docs/c/Graphics/Drawing_Primitives/#gpoint_from_polar) +(https://developer.rebble.io/docs/c/Graphics/Drawing_Primitives/#gpoint_from_polar) and then draws a circle at that point, for each dot. The progress layer update procedure uses [`graphics_fill_radial()`] -(https://developer.pebble.com/docs/c/Graphics/Drawing_Primitives/#graphics_fill_radial) +(https://developer.rebble.io/docs/c/Graphics/Drawing_Primitives/#graphics_fill_radial) which can fill a circle from a start and end angle, we’re using a narrow inset thickness so that the circle is just drawn as a ring. @@ -182,7 +182,7 @@ we need to do is mark the layer dirty. The final thing we’re going to add is an indicator to show your average daily steps for this time of day. We’ve already calculated the average, and we’re going to use [`graphics_fill_radial()`] -(https://developer.pebble.com/docs/c/Graphics/Drawing_Primitives/#graphics_fill_radial) +(https://developer.rebble.io/docs/c/Graphics/Drawing_Primitives/#graphics_fill_radial) again but this time it’s just to draw a yellow line. We’ll need to add another new layer and update procedure to handle the drawing of the line. diff --git a/source/_posts/2016-06-24-introducing-clay.md b/source/_posts/2016-06-24-introducing-clay.md index 114d296..4083d1a 100644 --- a/source/_posts/2016-06-24-introducing-clay.md +++ b/source/_posts/2016-06-24-introducing-clay.md @@ -80,7 +80,7 @@ var clay = new Clay(clayConfig); ## Why I created Clay -Clay began as a side project of mine. Whilst developing my [Segment watchface](https://apps.pebble.com/applications/560ae4754d43a36393000001), I wanted to add a configuration page to allow users to customize the colors of the watchface. However, I soon discovered this process to be rather fiddly. The old way of doing things required you to create and host HTML pages even for simple things like changing a background color or toggling an option. You would also need to write a bunch of boilerplate JavaScript to serialize and send the settings to the watch. Best case, for developers, this is super tedious. Worst case, it is terrifying. By day, I work as a web developer (mainly front-end) so if I was finding the process tiresome, I could only imagine how challenging it would be for someone who wasn't familiar with web technologies. And so I decided to create a framework that would alleviate this barrier for developers. I had a number of requirements that needed to be met in order for the framework to achieve my goals: +Clay began as a side project of mine. Whilst developing my [Segment watchface](https://apps.rebble.io/applications/560ae4754d43a36393000001), I wanted to add a configuration page to allow users to customize the colors of the watchface. However, I soon discovered this process to be rather fiddly. The old way of doing things required you to create and host HTML pages even for simple things like changing a background color or toggling an option. You would also need to write a bunch of boilerplate JavaScript to serialize and send the settings to the watch. Best case, for developers, this is super tedious. Worst case, it is terrifying. By day, I work as a web developer (mainly front-end) so if I was finding the process tiresome, I could only imagine how challenging it would be for someone who wasn't familiar with web technologies. And so I decided to create a framework that would alleviate this barrier for developers. I had a number of requirements that needed to be met in order for the framework to achieve my goals: - It should not require developers to write any HTML or CSS. - It should use JSON to define the generated config page. @@ -108,7 +108,7 @@ If developers want to add additional functionality to their config page, they ca - [App configuration guide.](/guides/user-interfaces/app-configuration/) - [Clay GitHub repository including full documentation.](https://github.com/pebble/clay) - Chat to us in the `#clay` channel on [Discord]({{ site.links.discord_invite }}). - - Visit the [Pebble Forums](https://forums.pebble.com/) + - Visit the [Pebble Forums](https://forums.rebble.io/) - Tweet at [@pebbledev](https://twitter.com/pebbledev) diff --git a/source/_posts/2016-08-15-introducing-rockyjs-watchfaces.md b/source/_posts/2016-08-15-introducing-rockyjs-watchfaces.md index 39b503b..9043641 100644 --- a/source/_posts/2016-08-15-introducing-rockyjs-watchfaces.md +++ b/source/_posts/2016-08-15-introducing-rockyjs-watchfaces.md @@ -285,7 +285,7 @@ of the classic Simplicity watchface. We hope you're as exicited about Rocky.js as we are. If you need assistance, have feedback or just want to send us some love, we're in #rockyjs on [Discord]({{ site.links.discord_invite }}) or the -[Pebble developer forums](https://forums.pebble.com/c/development). +[Pebble developer forums](https://forums.rebble.io/c/development). We're already working on the next update of Rocky.js and your feedback will help shape the future! diff --git a/source/_posts/2016-09-06-timeline-the-future-of-the-past.md b/source/_posts/2016-09-06-timeline-the-future-of-the-past.md index ad793e9..c4213c6 100644 --- a/source/_posts/2016-09-06-timeline-the-future-of-the-past.md +++ b/source/_posts/2016-09-06-timeline-the-future-of-the-past.md @@ -23,7 +23,7 @@ If you’ve been living under a rock, or have just been sunning yourself on the beach for the past week, you might have missed the [launch of Pebble OS 4.0](/blog/2016/08/30/announcing-pebble-sdk4/). This new version introduced some fantastic new features, such as the -[updated health app](https://blog.getpebble.com/2016/08/30/fw4-0/), +[updated health app](https://blog.rebble.io/2016/08/30/fw4-0/), {% guide_link user-interfaces/unobstructed-area "timeline quick view" %}, {% guide_link user-interfaces/appglance-c "app glances" %}, [Rocky.js](/blog/2016/08/15/introducing-rockyjs-watchfaces/) and a new @@ -44,7 +44,7 @@ wasn’t in the present or future, negatively affecting a number of apps and the use cases for the timeline. We carefully listened to feedback and suggestions from our developer community -via the [forums](https://forums.pebble.com), +via the [forums](https://forums.rebble.io), [Reddit](https://www.reddit.com/r/pebble), [Twitter](https://twitter.com/pebbledev) and [Discord]({{ site.links.discord_invite }}), and we are happy to announce that timeline past @@ -85,7 +85,7 @@ Pebble package for a really quick and easy solution. #### 3. Display a One-Time Notification Display a -[system notification](https://developer.pebble.com/guides/communication/using-pebblekit-js/#showing-a-notification) +[system notification](https://developer.rebble.io/guides/communication/using-pebblekit-js/#showing-a-notification) which only fires once, and display a message informing users how to enable timeline past. @@ -94,7 +94,7 @@ timeline past. #### 4. Display a Timeline Notification Display a -[timeline notification](https://developer.pebble.com/guides/pebble-timeline/), +[timeline notification](https://developer.rebble.io/guides/pebble-timeline/), and display a message informing users how to enable timeline past. ![Timeline Notification >{pebble-screenshot,pebble-screenshot--time-red}](/images/blog/2016-09-06-timeline-notification.png) @@ -115,5 +115,5 @@ things. We love to receive your product and feature We’re particularly interested to hear about your use cases and ideas for timeline as we travel further into the future! Let us know via -[the forums](https://forums.pebble.com), +[the forums](https://forums.rebble.io), [Twitter](https://twitter.com/pebbledev) and [Discord]({{ site.links.discord_invite }})! diff --git a/source/_posts/2016-10-11-Emery-SDK-Beta.md b/source/_posts/2016-10-11-Emery-SDK-Beta.md index 5233edc..91cdf99 100644 --- a/source/_posts/2016-10-11-Emery-SDK-Beta.md +++ b/source/_posts/2016-10-11-Emery-SDK-Beta.md @@ -22,7 +22,7 @@ tags: We're incredibly excited to announce the first public beta of the Pebble SDK 4.2. This is the first time that developers can experience the new 'Emery' platform which is specifically created for the upcoming -[Pebble Time 2](https://www.pebble.com/buy-pebble-time-2-smartwatch). +[Pebble Time 2](https://www.rebble.io/buy-pebble-time-2-smartwatch). ![Pebble Time 2](/images/blog/2016-10-11-intro.jpg) diff --git a/source/_posts/2016-12-22-pebblejs-package.md b/source/_posts/2016-12-22-pebblejs-package.md index f468425..2e588f7 100644 --- a/source/_posts/2016-12-22-pebblejs-package.md +++ b/source/_posts/2016-12-22-pebblejs-package.md @@ -137,7 +137,7 @@ standard Clay [Getting Started](https://github.com/pebble/clay#clay) instructions! If you have any questions or problems, post the details on the -[developer forum](https://forums.pebble.com/t/pebble-js-pebble-package-edition/27315) +[developer forum](https://forums.rebble.io/t/pebble-js-pebble-package-edition/27315) or [Discord](http://discord.gg/aRUAYFN). Happy Holidays! diff --git a/source/assets/other/UX-Design-Guide-v1.pdf b/source/assets/other/UX-Design-Guide-v1.pdf index ab884a2..238bc10 100644 Binary files a/source/assets/other/UX-Design-Guide-v1.pdf and b/source/assets/other/UX-Design-Guide-v1.pdf differ diff --git a/source/contact/index.html b/source/contact/index.html index 0e51d6b..364a39d 100644 --- a/source/contact/index.html +++ b/source/contact/index.html @@ -31,13 +31,13 @@

{{ page.title }}

If you have shipping, billing or other non-developer related questions, please contact Pebble Support + href="http://help.rebble.io/customer/portal/emails/new">Pebble Support instead.

Developer Support

In order to find a resolution to a development issue, you may want to try - our community forums.

+ our community forums.

  • 1. Try searching to locate a resolution for your problem.
  • 2. If you were unable to locate a solution, create a new topic. Try diff --git a/source/inspiration.md b/source/inspiration.md index 640d85c..671b433 100644 --- a/source/inspiration.md +++ b/source/inspiration.md @@ -53,14 +53,14 @@ that’s simple and efficient? ### Transit Our Pebblers in the SF Bay Area rave about the -[Caltrain app](http://apps.getpebble.com/en_US/application/53eb5caf6743f7a863000201), +[Caltrain app](http://apps.rebble.io/en_US/application/53eb5caf6743f7a863000201), which gives us the closest Caltrain station, time until the next train, and future train schedules. It has simplified our morning commute dramatically and lets us keep our phones in our pockets at the right time. How awesome would it be if Pebblers all over the world were able to have that same luxury? Can we incorporate the Pebble timeline into that experience? -[Join the Discussion >{more}](https://forums.getpebble.com/discussion/28486/transportation-apps#latest) +[Join the Discussion >{more}](https://forums.rebble.io/discussion/28486/transportation-apps#latest) ## Workout Companions @@ -72,7 +72,7 @@ what you did. There are some great timers, stopwatches, running & biking trackers, and rep counters out there, but we haven’t yet seen the whole package come together. -[Join the Discussion >{more}](https://forums.getpebble.com/discussion/28487/workout-companions#latest) +[Join the Discussion >{more}](https://forums.rebble.io/discussion/28487/workout-companions#latest) ## Gift Cards, Loyalty, Ticketing @@ -85,12 +85,12 @@ to walk into your favorite retailer, concert, sports game, pharmacy, or gas station and have to do nothing but flash your magic wrist-wand? Pretty cool. -Working with [Eventbrite](https://apps.getpebble.com/applications/55b7e74d180264f33f00007e) +Working with [Eventbrite](https://apps.rebble.io/applications/55b7e74d180264f33f00007e) made a lot of sense - get events on your Pebble timeline and launch your tickets right from your wrist. How can we get everyone’s tickets and cards onto their wrists? -[Join the Discussion >{more}](https://forums.getpebble.com/discussion/28498/gift-cards-loyalty-cards-and-ticketing#latest) +[Join the Discussion >{more}](https://forums.rebble.io/discussion/28498/gift-cards-loyalty-cards-and-ticketing#latest) ## Local Discovery @@ -102,7 +102,7 @@ landing right on your timeline. We love using services like Eventbrite, Meetup, Songkick, and Bandsintown to discover what’s going on near us — how can we bring this to Pebble? -[Join the Discussion >{more}](https://forums.getpebble.com/discussion/28488/local-discovery#latest) +[Join the Discussion >{more}](https://forums.rebble.io/discussion/28488/local-discovery#latest) ## Pebble to Pebble Communication @@ -111,10 +111,10 @@ how can we bring this to Pebble? Simply put - Pebblers are awesome, and awesome people should stick together. How cool would it be if you could communicate with other Pebblers without even needing a phone? -[Boopy](https://apps.getpebble.com/applications/556211d49853b8c3f30000b9) +[Boopy](https://apps.rebble.io/applications/556211d49853b8c3f30000b9) is an awesome start - how far can we take this? -[Join the Discussion >{more}](https://forums.getpebble.com/discussion/28489/watch-to-watch-communication#latest) +[Join the Discussion >{more}](https://forums.rebble.io/discussion/28489/watch-to-watch-communication#latest) ## Tasks, Reminders, Todo Lists @@ -124,11 +124,11 @@ With timeline as a core experience on the Pebble Time and the Voice API coming soon, we’re excited to see how developers can make Pebble the ultimate tool for productivity. -[Join the Discussion >{more}](https://forums.getpebble.com/discussion/28490/tasks-reminders-to-dos#latest) +[Join the Discussion >{more}](https://forums.rebble.io/discussion/28490/tasks-reminders-to-dos#latest) ## Addictive Games -> Ever played [Pixel Miner](https://apps.getpebble.com/applications/539e18f21a19dec6ca0000aa)? +> Ever played [Pixel Miner](https://apps.rebble.io/applications/539e18f21a19dec6ca0000aa)? That’s one we can never put down…. Whether it’s about trivia, flapping birds, or paper planes, we’d love @@ -139,7 +139,7 @@ And don’t forget, you’ve got a few tricks up your sleeve to keep them coming back… (e.g. [timeline pins](/guides/pebble-timeline/), the [Wakeup API](/guides/events-and-services/wakeups/)). -[Join the Discussion >{more}](https://forums.getpebble.com/discussion/28491/addictive-games#latest) +[Join the Discussion >{more}](https://forums.rebble.io/discussion/28491/addictive-games#latest) ## Home @@ -148,21 +148,21 @@ coming back… (e.g. [timeline pins](/guides/pebble-timeline/), the Studies show over 80% of Americans have at some point in their life misplaced one of the above. With more of your home getting smarter and more connected, Pebble can become the primary controller and monitor for everything. -[Leaf](https://apps.getpebble.com/applications/52ccd42551a80d792600002c) +[Leaf](https://apps.rebble.io/applications/52ccd42551a80d792600002c) is an awesome example -- let’s keep it going. -[Join the Discussion >{more}](https://forums.getpebble.com/discussion/28492/pebble-for-the-home#latest) +[Join the Discussion >{more}](https://forums.rebble.io/discussion/28492/pebble-for-the-home#latest) ## Security > Pebble unlocks what matters -[Authenticator](https://apps.getpebble.com/applications/52f1a4c3c4117252f9000bb8) +[Authenticator](https://apps.rebble.io/applications/52f1a4c3c4117252f9000bb8) has shown us the power of Pebble for easy two factor authentication. Whether it’s for physical or digital spaces, a watch that’s always on you is the perfect tool to keep what matters safe. Let’s see what else Pebble can unlock... -[Join the Discussion >{more}](https://forums.getpebble.com/discussion/28493/pebble-for-security#latest) +[Join the Discussion >{more}](https://forums.rebble.io/discussion/28493/pebble-for-security#latest) ## Enterprise @@ -173,7 +173,7 @@ services, retailers, and brands. At the same time, employees and managers have a newfound ability to notify, organize, coordinate, and learn from one another. The grass is green and the sky’s the limit. -[Join the Discussion >{more}](https://forums.getpebble.com/discussion/28494/pebble-for-businesses#latest) +[Join the Discussion >{more}](https://forums.rebble.io/discussion/28494/pebble-for-businesses#latest) ## On Demand @@ -185,7 +185,7 @@ click away from something awesome. Let’s give Pebble a few more superpowers… -[Join the Discussion >{more}](https://forums.getpebble.com/discussion/28495/pebble-for-on-demand#latest) +[Join the Discussion >{more}](https://forums.rebble.io/discussion/28495/pebble-for-on-demand#latest) ## Stay in the Know @@ -201,7 +201,7 @@ wherever they are. Maybe you even want to find ways to time-travel into the future? We’re listening. -[Join the Discussion >{more}](https://forums.getpebble.com/discussion/28496/pebble-and-staying-in-the-know#latest) +[Join the Discussion >{more}](https://forums.rebble.io/discussion/28496/pebble-and-staying-in-the-know#latest) ## Time @@ -212,7 +212,7 @@ sorts of awesome watchfaces -- dynamic, digital, analog, weather... but there’s always more that can be done. If you can think up and create new, innovative ways to tell time, we’re interested. -[Join the Discussion >{more}](https://forums.getpebble.com/discussion/28497/time#latest) +[Join the Discussion >{more}](https://forums.rebble.io/discussion/28497/time#latest) --- diff --git a/source/sdk/install/index.md b/source/sdk/install/index.md index c885f53..94eca96 100644 --- a/source/sdk/install/index.md +++ b/source/sdk/install/index.md @@ -48,4 +48,4 @@ you may have encountered. Once you have installed the Pebble SDK, you should check out our [Tutorials](/tutorials/) section to learn the basics of Pebble development. -[sdk-install-help]: https://forums.getpebble.com/categories/sdk-install/ +[sdk-install-help]: https://forums.rebble.io/categories/sdk-install/ diff --git a/source/sdk/install/windows.md b/source/sdk/install/windows.md index f77c449..04abd2f 100644 --- a/source/sdk/install/windows.md +++ b/source/sdk/install/windows.md @@ -57,4 +57,4 @@ Please make sure you provide as many details as you can about the issue you have encountered (copy/pasting your terminal output will help a lot). [cloudpebble]: {{ site.links.cloudpebble }} -[sdk-install-help]: https://forums.getpebble.com/categories/sdk-install/ \ No newline at end of file +[sdk-install-help]: https://forums.rebble.io/categories/sdk-install/ \ No newline at end of file diff --git a/source/tutorials/js-watchface-tutorial/part1.md b/source/tutorials/js-watchface-tutorial/part1.md index 019ac18..498850e 100644 --- a/source/tutorials/js-watchface-tutorial/part1.md +++ b/source/tutorials/js-watchface-tutorial/part1.md @@ -461,7 +461,7 @@ output, it probably means there is an issue in the preceding code. If you've tried the steps above and you're still having problems, there are plenty of places to get help. You can post your question and code on the -[Pebble Forums](https://forums.pebble.com/c/development) or join our +[Pebble Forums](https://forums.rebble.io/c/development) or join our [Discord Server]({{ site.links.discord_invite }}) and ask for assistance. diff --git a/source/tutorials/js-watchface-tutorial/part2.md b/source/tutorials/js-watchface-tutorial/part2.md index 1e459cf..f31315e 100644 --- a/source/tutorials/js-watchface-tutorial/part2.md +++ b/source/tutorials/js-watchface-tutorial/part2.md @@ -180,7 +180,7 @@ services. In this tutorial, we will interface with [Open Weather Map](http://openweathermap.org/) – a common weather API used by -the [Pebble Developer Community](https://forums.pebble.com/c/development). +the [Pebble Developer Community](https://forums.rebble.io/c/development). The `XMLHttpRequest` object is quite powerful, but can be intimidating to get started with. To make things a bit simpler, we'll wrap the object with a helper diff --git a/spec/fixtures/js.json b/spec/fixtures/js.json index c461ab0..ee34ca2 100644 --- a/spec/fixtures/js.json +++ b/spec/fixtures/js.json @@ -97,7 +97,7 @@ "column": 24 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js", + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js", "code": "/**\n * @namespace Pebble\n *\n * @desc The Pebble namespace is where all of the Pebble specific methods and\n * properties exist. This class contains methods belonging to PebbleKit JS and\n * allows bi-directional communication with a C watchapp, as well as managing\n * the user's timeline subscriptions and obtaining information about their\n * watch.\n */\nvar Pebble = new Object;\n\n\n/**\n * @desc Adds a listener for Pebble JS events, such as when an ``AppMessage`` is\n * received or the configuration view is opened or closed.\n *\n * #### `event` Options\n *\n * Possible values:\n *\n * * `ready` - The watchapp has been launched and the PebbleKit JS component\n * is now ready to receive events.\n * * `appmessage` - The watch sent an ``AppMessage`` to PebbleKit JS. The\n * AppMessage ``Dictionary`` is contained in the payload property (i.e:\n * event.payload). The payload consists of key-value pairs, where the keys\n * are strings containing integers (e.g: \"0\"), or aliases for keys defined\n * in package.json (e.g: \"KEY_EXAMPLE\"). Values should be integers, strings\n * or byte arrays (arrays of characters).\n * * `showConfiguration` - The user has requested the app's configuration\n * webview to be displayed. This can occur either upon the app's initial\n * install or when the user taps 'Settings' in the 'My Pebble' view withtin\n * the phone app.\n * * `webviewclosed` - The configuration webview was closed by the user. If\n * the webview had a response, it will be contained in the response property\n * (i.e: event.response). This response can be used to feed back user\n * preferences to the watchapp.\n *\n * @param {String} event - The type of the event, from the list described above.\n * @param {EventCallback} callback - The developer defined {@link #EventCallback EventCallback}\n * to receive any events of the type specified that occur.\n*/\nPebble.addEventListener = function(event, callback) { };\n\n/**\n * @desc Remove an existing event listener previously registered with\n * ``Pebble.addEventListener()``.\n *\n * @param {String} type - The type of the event listener to be removed. See\n * ``Pebble.addEventListener()`` for a list of available types.\n * @param {Function} callback - The existing developer-defined function that was\n * previously registered.\n */\nPebble.removeEventListener = function(type, callback) { };\n\n/**\n * @desc Show a simple modal notification on the connected watch.\n *\n * @param {String} title - The title of the notification\n * @param {String} body - The main content of the notification\n */\nPebble.showSimpleNotificationOnPebble = function(title, body) { };\n\n/**\n * @desc Send an AppMessage to the app running on the watch. Messages should be\n * in the form of JSON objects containing key-value pairs. See\n * Pebble.sendAppMessage() for valid key and value data types.\n * Pebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n *\n * @returns {Number} The transaction id for this message\n *\n * @param {Object} data - A JSON object containing key-value pairs to send to\n * the watch. Values in arrays that are greater then 255 will be mod 255\n * before sending.\n * @param {AppMessageAckCallback} onSuccess - A developer-defined {@link #AppMessageAckCallback AppMessageAckCallback}\n * callback to run if the watch acknowledges (ACK) this message.\n * @param {AppMessageOnFailure} onSuccess - A developer-defined {@link #AppMessageNackCallback AppMessageNackCallback}\n * callback to run if the watch does not acknowledges (NACK) this message.\n */\nPebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n\n\n/**\n * @desc Get the user's timeline token for this app. This is a string and is\n * unique per user per app. Note: In order for timeline tokens to be\n * available, the app must be submitted to the Pebble appstore, but does not\n * need to be public. Read more in the\n * {@link /guides/pebble-timeline/timeline-js/ timeline guides}.\n *\n * @param {TimelineTokenCallback} onSuccess - A developer-defined {@link #TimelineTokenCallback TimelineTokenCallback}\n * callback to handle a successful attempt to get the timeline token.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed attempt to get the timeline token.\n */Pebble.getTimelineToken = function(onSuccess, onFailure) { };\n\n/**\n * @desc Subscribe the user to a timeline topic for your app. This can be used\n * to filter the different pins a user could receive according to their\n * preferences, as well as maintain groups of users.\n *\n * @param {String} topic - The desired topic to be subscribed to. Users will\n * receive all pins pushed to this topic.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful subscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed subscription attempt.\n */\nPebble.timelineSubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Unsubscribe the user from a timeline topic for your app. Once\n * unsubscribed, the user will no longer receive any pins pushed to this\n * topic.\n *\n * @param {String} topic - The desired topic to be unsubscribed from.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful unsubscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed unsubscription attempt.\n */\nPebble.timelineUnsubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Obtain a list of topics that the user is currently subscribed to. The\n * length of the list should be checked to determine whether the user is\n * subscribed to at least one topic.\n *\n * @param {TimelineTopicsCallback} onSuccess - The developer-defined function to process the\n * retuned list of topic strings.\n * @param {Function} onFailure - The developer-defined function to gracefully\n * handle any errors in obtaining the user's subscriptions.\n */\nPebble.timelineSubscription = function(onSuccess, onFailure) { };\n\n\n/**\n * @desc Obtain an object containing information on the currently connected\n * Pebble smartwatch.\n *\n * **Note:** This function is only available when using the Pebble Time\n * smartphone app. Check out our guide on {@link /guides/communication/using-pebblekit-js Getting Watch Information}\n * for details on how to use this function.\n *\n * @returns {WatchInfo} A {@link #WatchInfo WatchInfo} object detailing the\n * currently connected Pebble watch.\n */\nPebble.getActiveWatchInfo = function() { };\n\n/**\n * @desc Returns a unique account token that is associated with the Pebble\n * account of the current user.\n *\n * **Note:** The behavior of this changed slightly in SDK 3.0. Read the\n * {@link /guides/migration/migration-guide-3/ Migration Guide} to learn the\n * details and how to adapt older tokens.\n *\n * @returns {String} A string that is guaranteed to be identical across devices\n * if the user owns several Pebble or several mobile devices. From the\n * developer's perspective, the account token of a user is identical across\n * platforms and across all the developer's watchapps. If the user is not\n * logged in, this function will return an empty string ('').\n */\n\nPebble.getAccountToken = function() { };\n\n/**\n * @desc Returns a a unique token that can be used to identify a Pebble device.\n *\n * @returns {String} A string that is is guaranteed to be identical for each\n * Pebble device for the same app across different mobile devices. The token\n * is unique to your app and cannot be used to track Pebble devices across\n * applications.\n */\nPebble.getWatchToken = function() { };\n\n\n/**\n * @desc Triggers a reload of the app glance which first clears any existing \n * slices and then adds the provided slices.\n *\n * @param {AppGlanceSlice} appGlanceSlices - {@link #AppGlanceSlice AppGlanceSlice} \n * JSON objects to add to the app glance.\n * @param {AppGlanceReloadSuccessCallback} onSuccess - The developer-defined \n * callback which is called if the reload operation succeeds.\n * @param {AppGlanceReloadFailureCallback} onFailure - The developer-defined \n * callback which is called if the reload operation fails.\n */\nPebble.appGlanceReload = function(appGlanceSlices, onSuccess, onFailure) { };\n\n/**\n * @typedef {Function} AppGlanceReloadSuccessCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload is successful.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n /**\n * @typedef {Function} AppGlanceReloadFailureCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload has failed.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n/**\n * @typedef {Function} AppMessageAckCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message.\n */\n\n/**\n * @typedef {Function} AppMessageNackCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is not acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message\n * @param {String} error - The error message\n */\n\n/**\n * @typedef {Function} EventCallback\n * @memberof Pebble\n *\n * @desc Called when an event of any type previously registered occurs. The\n * parameters are different depending on the type of event, shown in\n * brackets for each parameter listed here.\n * @param {Object} event - An object containing the event information, including:\n * * `type` - The type of event fired, from the list in the description of ``Pebble.addEventListener()``.\n * * `payload` - The dictionary sent over ``AppMessage`` consisting of\n * key-value pairs. *This field only exists for `appmessage` events.*\n * * `response` - The contents of the URL navigated to when the\n * configuration page was closed, after the anchor. This may be encoded,\n * which will require use of decodeURIComponent() before reading as an\n * object. *This field only exists for for `webviewclosed` events.*\n */\n\n/**\n * @typedef {Function} TimelineTokenCallback\n * @memberof Pebble\n *\n * @desc Called when the user's timeline token is available.\n * @param {String} token - The user's token.\n */\n\n/**\n * @typedef {Function} TimelineTopicsCallback\n * @memberof Pebble\n *\n * @desc Called when the user's list of subscriptions is available for processing by the developer.\n * @param {[String]} List of topic strings that the user is subscribed to\n */\n\n/**\n * @typedef {Object} WatchInfo\n * @memberof Pebble\n *\n * @desc Provides information about the connected Pebble smartwatch.\n *\n * @property {String} platform - The hardware platform, such as `basalt` or `emery`.\n * @property {String} model - The watch model, such as `pebble_black`\n * @property {String} language - The user's currently selected language on\n * this watch.\n * @property {Object} firmware - An object containing information about the\n * watch's firmware version, including:\n * * `major` - The major version\n * * `minor` - The minor version\n * * `patch` - The patch version\n * * `suffix` - Any additional version information, such as `beta3`\n*/\n\n/**\n * @typedef {Object} AppGlanceSlice\n * @memberof Pebble\n *\n * @desc The structure of an app glance.\n *\n * @property {String} expirationTime - Optional ISO date-time string of when \n the entry should expire and no longer be shown in the app glance.\n * @property {Object} layout - An object containing:\n * * `icon` - URI string of the icon to display in the app glance, e.g. system://images/ALARM_CLOCK.\n * * `subtitleTemplateString` - Template string that will be displayed in the subtitle of the app glance.\n*/\n" }, "kind": "namespace", @@ -774,7 +774,7 @@ "column": 56 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js", + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js", "code": "/**\n * @namespace Pebble\n *\n * @desc The Pebble namespace is where all of the Pebble specific methods and\n * properties exist. This class contains methods belonging to PebbleKit JS and\n * allows bi-directional communication with a C watchapp, as well as managing\n * the user's timeline subscriptions and obtaining information about their\n * watch.\n */\nvar Pebble = new Object;\n\n\n/**\n * @desc Adds a listener for Pebble JS events, such as when an ``AppMessage`` is\n * received or the configuration view is opened or closed.\n *\n * #### `event` Options\n *\n * Possible values:\n *\n * * `ready` - The watchapp has been launched and the PebbleKit JS component\n * is now ready to receive events.\n * * `appmessage` - The watch sent an ``AppMessage`` to PebbleKit JS. The\n * AppMessage ``Dictionary`` is contained in the payload property (i.e:\n * event.payload). The payload consists of key-value pairs, where the keys\n * are strings containing integers (e.g: \"0\"), or aliases for keys defined\n * in package.json (e.g: \"KEY_EXAMPLE\"). Values should be integers, strings\n * or byte arrays (arrays of characters).\n * * `showConfiguration` - The user has requested the app's configuration\n * webview to be displayed. This can occur either upon the app's initial\n * install or when the user taps 'Settings' in the 'My Pebble' view withtin\n * the phone app.\n * * `webviewclosed` - The configuration webview was closed by the user. If\n * the webview had a response, it will be contained in the response property\n * (i.e: event.response). This response can be used to feed back user\n * preferences to the watchapp.\n *\n * @param {String} event - The type of the event, from the list described above.\n * @param {EventCallback} callback - The developer defined {@link #EventCallback EventCallback}\n * to receive any events of the type specified that occur.\n*/\nPebble.addEventListener = function(event, callback) { };\n\n/**\n * @desc Remove an existing event listener previously registered with\n * ``Pebble.addEventListener()``.\n *\n * @param {String} type - The type of the event listener to be removed. See\n * ``Pebble.addEventListener()`` for a list of available types.\n * @param {Function} callback - The existing developer-defined function that was\n * previously registered.\n */\nPebble.removeEventListener = function(type, callback) { };\n\n/**\n * @desc Show a simple modal notification on the connected watch.\n *\n * @param {String} title - The title of the notification\n * @param {String} body - The main content of the notification\n */\nPebble.showSimpleNotificationOnPebble = function(title, body) { };\n\n/**\n * @desc Send an AppMessage to the app running on the watch. Messages should be\n * in the form of JSON objects containing key-value pairs. See\n * Pebble.sendAppMessage() for valid key and value data types.\n * Pebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n *\n * @returns {Number} The transaction id for this message\n *\n * @param {Object} data - A JSON object containing key-value pairs to send to\n * the watch. Values in arrays that are greater then 255 will be mod 255\n * before sending.\n * @param {AppMessageAckCallback} onSuccess - A developer-defined {@link #AppMessageAckCallback AppMessageAckCallback}\n * callback to run if the watch acknowledges (ACK) this message.\n * @param {AppMessageOnFailure} onSuccess - A developer-defined {@link #AppMessageNackCallback AppMessageNackCallback}\n * callback to run if the watch does not acknowledges (NACK) this message.\n */\nPebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n\n\n/**\n * @desc Get the user's timeline token for this app. This is a string and is\n * unique per user per app. Note: In order for timeline tokens to be\n * available, the app must be submitted to the Pebble appstore, but does not\n * need to be public. Read more in the\n * {@link /guides/pebble-timeline/timeline-js/ timeline guides}.\n *\n * @param {TimelineTokenCallback} onSuccess - A developer-defined {@link #TimelineTokenCallback TimelineTokenCallback}\n * callback to handle a successful attempt to get the timeline token.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed attempt to get the timeline token.\n */Pebble.getTimelineToken = function(onSuccess, onFailure) { };\n\n/**\n * @desc Subscribe the user to a timeline topic for your app. This can be used\n * to filter the different pins a user could receive according to their\n * preferences, as well as maintain groups of users.\n *\n * @param {String} topic - The desired topic to be subscribed to. Users will\n * receive all pins pushed to this topic.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful subscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed subscription attempt.\n */\nPebble.timelineSubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Unsubscribe the user from a timeline topic for your app. Once\n * unsubscribed, the user will no longer receive any pins pushed to this\n * topic.\n *\n * @param {String} topic - The desired topic to be unsubscribed from.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful unsubscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed unsubscription attempt.\n */\nPebble.timelineUnsubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Obtain a list of topics that the user is currently subscribed to. The\n * length of the list should be checked to determine whether the user is\n * subscribed to at least one topic.\n *\n * @param {TimelineTopicsCallback} onSuccess - The developer-defined function to process the\n * retuned list of topic strings.\n * @param {Function} onFailure - The developer-defined function to gracefully\n * handle any errors in obtaining the user's subscriptions.\n */\nPebble.timelineSubscription = function(onSuccess, onFailure) { };\n\n\n/**\n * @desc Obtain an object containing information on the currently connected\n * Pebble smartwatch.\n *\n * **Note:** This function is only available when using the Pebble Time\n * smartphone app. Check out our guide on {@link /guides/communication/using-pebblekit-js Getting Watch Information}\n * for details on how to use this function.\n *\n * @returns {WatchInfo} A {@link #WatchInfo WatchInfo} object detailing the\n * currently connected Pebble watch.\n */\nPebble.getActiveWatchInfo = function() { };\n\n/**\n * @desc Returns a unique account token that is associated with the Pebble\n * account of the current user.\n *\n * **Note:** The behavior of this changed slightly in SDK 3.0. Read the\n * {@link /guides/migration/migration-guide-3/ Migration Guide} to learn the\n * details and how to adapt older tokens.\n *\n * @returns {String} A string that is guaranteed to be identical across devices\n * if the user owns several Pebble or several mobile devices. From the\n * developer's perspective, the account token of a user is identical across\n * platforms and across all the developer's watchapps. If the user is not\n * logged in, this function will return an empty string ('').\n */\n\nPebble.getAccountToken = function() { };\n\n/**\n * @desc Returns a a unique token that can be used to identify a Pebble device.\n *\n * @returns {String} A string that is is guaranteed to be identical for each\n * Pebble device for the same app across different mobile devices. The token\n * is unique to your app and cannot be used to track Pebble devices across\n * applications.\n */\nPebble.getWatchToken = function() { };\n\n\n/**\n * @desc Triggers a reload of the app glance which first clears any existing \n * slices and then adds the provided slices.\n *\n * @param {AppGlanceSlice} appGlanceSlices - {@link #AppGlanceSlice AppGlanceSlice} \n * JSON objects to add to the app glance.\n * @param {AppGlanceReloadSuccessCallback} onSuccess - The developer-defined \n * callback which is called if the reload operation succeeds.\n * @param {AppGlanceReloadFailureCallback} onFailure - The developer-defined \n * callback which is called if the reload operation fails.\n */\nPebble.appGlanceReload = function(appGlanceSlices, onSuccess, onFailure) { };\n\n/**\n * @typedef {Function} AppGlanceReloadSuccessCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload is successful.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n /**\n * @typedef {Function} AppGlanceReloadFailureCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload has failed.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n/**\n * @typedef {Function} AppMessageAckCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message.\n */\n\n/**\n * @typedef {Function} AppMessageNackCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is not acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message\n * @param {String} error - The error message\n */\n\n/**\n * @typedef {Function} EventCallback\n * @memberof Pebble\n *\n * @desc Called when an event of any type previously registered occurs. The\n * parameters are different depending on the type of event, shown in\n * brackets for each parameter listed here.\n * @param {Object} event - An object containing the event information, including:\n * * `type` - The type of event fired, from the list in the description of ``Pebble.addEventListener()``.\n * * `payload` - The dictionary sent over ``AppMessage`` consisting of\n * key-value pairs. *This field only exists for `appmessage` events.*\n * * `response` - The contents of the URL navigated to when the\n * configuration page was closed, after the anchor. This may be encoded,\n * which will require use of decodeURIComponent() before reading as an\n * object. *This field only exists for for `webviewclosed` events.*\n */\n\n/**\n * @typedef {Function} TimelineTokenCallback\n * @memberof Pebble\n *\n * @desc Called when the user's timeline token is available.\n * @param {String} token - The user's token.\n */\n\n/**\n * @typedef {Function} TimelineTopicsCallback\n * @memberof Pebble\n *\n * @desc Called when the user's list of subscriptions is available for processing by the developer.\n * @param {[String]} List of topic strings that the user is subscribed to\n */\n\n/**\n * @typedef {Object} WatchInfo\n * @memberof Pebble\n *\n * @desc Provides information about the connected Pebble smartwatch.\n *\n * @property {String} platform - The hardware platform, such as `basalt` or `emery`.\n * @property {String} model - The watch model, such as `pebble_black`\n * @property {String} language - The user's currently selected language on\n * this watch.\n * @property {Object} firmware - An object containing information about the\n * watch's firmware version, including:\n * * `major` - The major version\n * * `minor` - The minor version\n * * `patch` - The patch version\n * * `suffix` - Any additional version information, such as `beta3`\n*/\n\n/**\n * @typedef {Object} AppGlanceSlice\n * @memberof Pebble\n *\n * @desc The structure of an app glance.\n *\n * @property {String} expirationTime - Optional ISO date-time string of when \n the entry should expire and no longer be shown in the app glance.\n * @property {Object} layout - An object containing:\n * * `icon` - URI string of the icon to display in the app glance, e.g. system://images/ALARM_CLOCK.\n * * `subtitleTemplateString` - Template string that will be displayed in the subtitle of the app glance.\n*/\n" }, "params": [ @@ -1105,7 +1105,7 @@ "column": 58 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js", + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js", "code": "/**\n * @namespace Pebble\n *\n * @desc The Pebble namespace is where all of the Pebble specific methods and\n * properties exist. This class contains methods belonging to PebbleKit JS and\n * allows bi-directional communication with a C watchapp, as well as managing\n * the user's timeline subscriptions and obtaining information about their\n * watch.\n */\nvar Pebble = new Object;\n\n\n/**\n * @desc Adds a listener for Pebble JS events, such as when an ``AppMessage`` is\n * received or the configuration view is opened or closed.\n *\n * #### `event` Options\n *\n * Possible values:\n *\n * * `ready` - The watchapp has been launched and the PebbleKit JS component\n * is now ready to receive events.\n * * `appmessage` - The watch sent an ``AppMessage`` to PebbleKit JS. The\n * AppMessage ``Dictionary`` is contained in the payload property (i.e:\n * event.payload). The payload consists of key-value pairs, where the keys\n * are strings containing integers (e.g: \"0\"), or aliases for keys defined\n * in package.json (e.g: \"KEY_EXAMPLE\"). Values should be integers, strings\n * or byte arrays (arrays of characters).\n * * `showConfiguration` - The user has requested the app's configuration\n * webview to be displayed. This can occur either upon the app's initial\n * install or when the user taps 'Settings' in the 'My Pebble' view withtin\n * the phone app.\n * * `webviewclosed` - The configuration webview was closed by the user. If\n * the webview had a response, it will be contained in the response property\n * (i.e: event.response). This response can be used to feed back user\n * preferences to the watchapp.\n *\n * @param {String} event - The type of the event, from the list described above.\n * @param {EventCallback} callback - The developer defined {@link #EventCallback EventCallback}\n * to receive any events of the type specified that occur.\n*/\nPebble.addEventListener = function(event, callback) { };\n\n/**\n * @desc Remove an existing event listener previously registered with\n * ``Pebble.addEventListener()``.\n *\n * @param {String} type - The type of the event listener to be removed. See\n * ``Pebble.addEventListener()`` for a list of available types.\n * @param {Function} callback - The existing developer-defined function that was\n * previously registered.\n */\nPebble.removeEventListener = function(type, callback) { };\n\n/**\n * @desc Show a simple modal notification on the connected watch.\n *\n * @param {String} title - The title of the notification\n * @param {String} body - The main content of the notification\n */\nPebble.showSimpleNotificationOnPebble = function(title, body) { };\n\n/**\n * @desc Send an AppMessage to the app running on the watch. Messages should be\n * in the form of JSON objects containing key-value pairs. See\n * Pebble.sendAppMessage() for valid key and value data types.\n * Pebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n *\n * @returns {Number} The transaction id for this message\n *\n * @param {Object} data - A JSON object containing key-value pairs to send to\n * the watch. Values in arrays that are greater then 255 will be mod 255\n * before sending.\n * @param {AppMessageAckCallback} onSuccess - A developer-defined {@link #AppMessageAckCallback AppMessageAckCallback}\n * callback to run if the watch acknowledges (ACK) this message.\n * @param {AppMessageOnFailure} onSuccess - A developer-defined {@link #AppMessageNackCallback AppMessageNackCallback}\n * callback to run if the watch does not acknowledges (NACK) this message.\n */\nPebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n\n\n/**\n * @desc Get the user's timeline token for this app. This is a string and is\n * unique per user per app. Note: In order for timeline tokens to be\n * available, the app must be submitted to the Pebble appstore, but does not\n * need to be public. Read more in the\n * {@link /guides/pebble-timeline/timeline-js/ timeline guides}.\n *\n * @param {TimelineTokenCallback} onSuccess - A developer-defined {@link #TimelineTokenCallback TimelineTokenCallback}\n * callback to handle a successful attempt to get the timeline token.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed attempt to get the timeline token.\n */Pebble.getTimelineToken = function(onSuccess, onFailure) { };\n\n/**\n * @desc Subscribe the user to a timeline topic for your app. This can be used\n * to filter the different pins a user could receive according to their\n * preferences, as well as maintain groups of users.\n *\n * @param {String} topic - The desired topic to be subscribed to. Users will\n * receive all pins pushed to this topic.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful subscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed subscription attempt.\n */\nPebble.timelineSubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Unsubscribe the user from a timeline topic for your app. Once\n * unsubscribed, the user will no longer receive any pins pushed to this\n * topic.\n *\n * @param {String} topic - The desired topic to be unsubscribed from.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful unsubscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed unsubscription attempt.\n */\nPebble.timelineUnsubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Obtain a list of topics that the user is currently subscribed to. The\n * length of the list should be checked to determine whether the user is\n * subscribed to at least one topic.\n *\n * @param {TimelineTopicsCallback} onSuccess - The developer-defined function to process the\n * retuned list of topic strings.\n * @param {Function} onFailure - The developer-defined function to gracefully\n * handle any errors in obtaining the user's subscriptions.\n */\nPebble.timelineSubscription = function(onSuccess, onFailure) { };\n\n\n/**\n * @desc Obtain an object containing information on the currently connected\n * Pebble smartwatch.\n *\n * **Note:** This function is only available when using the Pebble Time\n * smartphone app. Check out our guide on {@link /guides/communication/using-pebblekit-js Getting Watch Information}\n * for details on how to use this function.\n *\n * @returns {WatchInfo} A {@link #WatchInfo WatchInfo} object detailing the\n * currently connected Pebble watch.\n */\nPebble.getActiveWatchInfo = function() { };\n\n/**\n * @desc Returns a unique account token that is associated with the Pebble\n * account of the current user.\n *\n * **Note:** The behavior of this changed slightly in SDK 3.0. Read the\n * {@link /guides/migration/migration-guide-3/ Migration Guide} to learn the\n * details and how to adapt older tokens.\n *\n * @returns {String} A string that is guaranteed to be identical across devices\n * if the user owns several Pebble or several mobile devices. From the\n * developer's perspective, the account token of a user is identical across\n * platforms and across all the developer's watchapps. If the user is not\n * logged in, this function will return an empty string ('').\n */\n\nPebble.getAccountToken = function() { };\n\n/**\n * @desc Returns a a unique token that can be used to identify a Pebble device.\n *\n * @returns {String} A string that is is guaranteed to be identical for each\n * Pebble device for the same app across different mobile devices. The token\n * is unique to your app and cannot be used to track Pebble devices across\n * applications.\n */\nPebble.getWatchToken = function() { };\n\n\n/**\n * @desc Triggers a reload of the app glance which first clears any existing \n * slices and then adds the provided slices.\n *\n * @param {AppGlanceSlice} appGlanceSlices - {@link #AppGlanceSlice AppGlanceSlice} \n * JSON objects to add to the app glance.\n * @param {AppGlanceReloadSuccessCallback} onSuccess - The developer-defined \n * callback which is called if the reload operation succeeds.\n * @param {AppGlanceReloadFailureCallback} onFailure - The developer-defined \n * callback which is called if the reload operation fails.\n */\nPebble.appGlanceReload = function(appGlanceSlices, onSuccess, onFailure) { };\n\n/**\n * @typedef {Function} AppGlanceReloadSuccessCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload is successful.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n /**\n * @typedef {Function} AppGlanceReloadFailureCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload has failed.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n/**\n * @typedef {Function} AppMessageAckCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message.\n */\n\n/**\n * @typedef {Function} AppMessageNackCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is not acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message\n * @param {String} error - The error message\n */\n\n/**\n * @typedef {Function} EventCallback\n * @memberof Pebble\n *\n * @desc Called when an event of any type previously registered occurs. The\n * parameters are different depending on the type of event, shown in\n * brackets for each parameter listed here.\n * @param {Object} event - An object containing the event information, including:\n * * `type` - The type of event fired, from the list in the description of ``Pebble.addEventListener()``.\n * * `payload` - The dictionary sent over ``AppMessage`` consisting of\n * key-value pairs. *This field only exists for `appmessage` events.*\n * * `response` - The contents of the URL navigated to when the\n * configuration page was closed, after the anchor. This may be encoded,\n * which will require use of decodeURIComponent() before reading as an\n * object. *This field only exists for for `webviewclosed` events.*\n */\n\n/**\n * @typedef {Function} TimelineTokenCallback\n * @memberof Pebble\n *\n * @desc Called when the user's timeline token is available.\n * @param {String} token - The user's token.\n */\n\n/**\n * @typedef {Function} TimelineTopicsCallback\n * @memberof Pebble\n *\n * @desc Called when the user's list of subscriptions is available for processing by the developer.\n * @param {[String]} List of topic strings that the user is subscribed to\n */\n\n/**\n * @typedef {Object} WatchInfo\n * @memberof Pebble\n *\n * @desc Provides information about the connected Pebble smartwatch.\n *\n * @property {String} platform - The hardware platform, such as `basalt` or `emery`.\n * @property {String} model - The watch model, such as `pebble_black`\n * @property {String} language - The user's currently selected language on\n * this watch.\n * @property {Object} firmware - An object containing information about the\n * watch's firmware version, including:\n * * `major` - The major version\n * * `minor` - The minor version\n * * `patch` - The patch version\n * * `suffix` - Any additional version information, such as `beta3`\n*/\n\n/**\n * @typedef {Object} AppGlanceSlice\n * @memberof Pebble\n *\n * @desc The structure of an app glance.\n *\n * @property {String} expirationTime - Optional ISO date-time string of when \n the entry should expire and no longer be shown in the app glance.\n * @property {Object} layout - An object containing:\n * * `icon` - URI string of the icon to display in the app glance, e.g. system://images/ALARM_CLOCK.\n * * `subtitleTemplateString` - Template string that will be displayed in the subtitle of the app glance.\n*/\n" }, "params": [ @@ -1394,7 +1394,7 @@ "column": 66 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js", + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js", "code": "/**\n * @namespace Pebble\n *\n * @desc The Pebble namespace is where all of the Pebble specific methods and\n * properties exist. This class contains methods belonging to PebbleKit JS and\n * allows bi-directional communication with a C watchapp, as well as managing\n * the user's timeline subscriptions and obtaining information about their\n * watch.\n */\nvar Pebble = new Object;\n\n\n/**\n * @desc Adds a listener for Pebble JS events, such as when an ``AppMessage`` is\n * received or the configuration view is opened or closed.\n *\n * #### `event` Options\n *\n * Possible values:\n *\n * * `ready` - The watchapp has been launched and the PebbleKit JS component\n * is now ready to receive events.\n * * `appmessage` - The watch sent an ``AppMessage`` to PebbleKit JS. The\n * AppMessage ``Dictionary`` is contained in the payload property (i.e:\n * event.payload). The payload consists of key-value pairs, where the keys\n * are strings containing integers (e.g: \"0\"), or aliases for keys defined\n * in package.json (e.g: \"KEY_EXAMPLE\"). Values should be integers, strings\n * or byte arrays (arrays of characters).\n * * `showConfiguration` - The user has requested the app's configuration\n * webview to be displayed. This can occur either upon the app's initial\n * install or when the user taps 'Settings' in the 'My Pebble' view withtin\n * the phone app.\n * * `webviewclosed` - The configuration webview was closed by the user. If\n * the webview had a response, it will be contained in the response property\n * (i.e: event.response). This response can be used to feed back user\n * preferences to the watchapp.\n *\n * @param {String} event - The type of the event, from the list described above.\n * @param {EventCallback} callback - The developer defined {@link #EventCallback EventCallback}\n * to receive any events of the type specified that occur.\n*/\nPebble.addEventListener = function(event, callback) { };\n\n/**\n * @desc Remove an existing event listener previously registered with\n * ``Pebble.addEventListener()``.\n *\n * @param {String} type - The type of the event listener to be removed. See\n * ``Pebble.addEventListener()`` for a list of available types.\n * @param {Function} callback - The existing developer-defined function that was\n * previously registered.\n */\nPebble.removeEventListener = function(type, callback) { };\n\n/**\n * @desc Show a simple modal notification on the connected watch.\n *\n * @param {String} title - The title of the notification\n * @param {String} body - The main content of the notification\n */\nPebble.showSimpleNotificationOnPebble = function(title, body) { };\n\n/**\n * @desc Send an AppMessage to the app running on the watch. Messages should be\n * in the form of JSON objects containing key-value pairs. See\n * Pebble.sendAppMessage() for valid key and value data types.\n * Pebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n *\n * @returns {Number} The transaction id for this message\n *\n * @param {Object} data - A JSON object containing key-value pairs to send to\n * the watch. Values in arrays that are greater then 255 will be mod 255\n * before sending.\n * @param {AppMessageAckCallback} onSuccess - A developer-defined {@link #AppMessageAckCallback AppMessageAckCallback}\n * callback to run if the watch acknowledges (ACK) this message.\n * @param {AppMessageOnFailure} onSuccess - A developer-defined {@link #AppMessageNackCallback AppMessageNackCallback}\n * callback to run if the watch does not acknowledges (NACK) this message.\n */\nPebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n\n\n/**\n * @desc Get the user's timeline token for this app. This is a string and is\n * unique per user per app. Note: In order for timeline tokens to be\n * available, the app must be submitted to the Pebble appstore, but does not\n * need to be public. Read more in the\n * {@link /guides/pebble-timeline/timeline-js/ timeline guides}.\n *\n * @param {TimelineTokenCallback} onSuccess - A developer-defined {@link #TimelineTokenCallback TimelineTokenCallback}\n * callback to handle a successful attempt to get the timeline token.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed attempt to get the timeline token.\n */Pebble.getTimelineToken = function(onSuccess, onFailure) { };\n\n/**\n * @desc Subscribe the user to a timeline topic for your app. This can be used\n * to filter the different pins a user could receive according to their\n * preferences, as well as maintain groups of users.\n *\n * @param {String} topic - The desired topic to be subscribed to. Users will\n * receive all pins pushed to this topic.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful subscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed subscription attempt.\n */\nPebble.timelineSubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Unsubscribe the user from a timeline topic for your app. Once\n * unsubscribed, the user will no longer receive any pins pushed to this\n * topic.\n *\n * @param {String} topic - The desired topic to be unsubscribed from.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful unsubscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed unsubscription attempt.\n */\nPebble.timelineUnsubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Obtain a list of topics that the user is currently subscribed to. The\n * length of the list should be checked to determine whether the user is\n * subscribed to at least one topic.\n *\n * @param {TimelineTopicsCallback} onSuccess - The developer-defined function to process the\n * retuned list of topic strings.\n * @param {Function} onFailure - The developer-defined function to gracefully\n * handle any errors in obtaining the user's subscriptions.\n */\nPebble.timelineSubscription = function(onSuccess, onFailure) { };\n\n\n/**\n * @desc Obtain an object containing information on the currently connected\n * Pebble smartwatch.\n *\n * **Note:** This function is only available when using the Pebble Time\n * smartphone app. Check out our guide on {@link /guides/communication/using-pebblekit-js Getting Watch Information}\n * for details on how to use this function.\n *\n * @returns {WatchInfo} A {@link #WatchInfo WatchInfo} object detailing the\n * currently connected Pebble watch.\n */\nPebble.getActiveWatchInfo = function() { };\n\n/**\n * @desc Returns a unique account token that is associated with the Pebble\n * account of the current user.\n *\n * **Note:** The behavior of this changed slightly in SDK 3.0. Read the\n * {@link /guides/migration/migration-guide-3/ Migration Guide} to learn the\n * details and how to adapt older tokens.\n *\n * @returns {String} A string that is guaranteed to be identical across devices\n * if the user owns several Pebble or several mobile devices. From the\n * developer's perspective, the account token of a user is identical across\n * platforms and across all the developer's watchapps. If the user is not\n * logged in, this function will return an empty string ('').\n */\n\nPebble.getAccountToken = function() { };\n\n/**\n * @desc Returns a a unique token that can be used to identify a Pebble device.\n *\n * @returns {String} A string that is is guaranteed to be identical for each\n * Pebble device for the same app across different mobile devices. The token\n * is unique to your app and cannot be used to track Pebble devices across\n * applications.\n */\nPebble.getWatchToken = function() { };\n\n\n/**\n * @desc Triggers a reload of the app glance which first clears any existing \n * slices and then adds the provided slices.\n *\n * @param {AppGlanceSlice} appGlanceSlices - {@link #AppGlanceSlice AppGlanceSlice} \n * JSON objects to add to the app glance.\n * @param {AppGlanceReloadSuccessCallback} onSuccess - The developer-defined \n * callback which is called if the reload operation succeeds.\n * @param {AppGlanceReloadFailureCallback} onFailure - The developer-defined \n * callback which is called if the reload operation fails.\n */\nPebble.appGlanceReload = function(appGlanceSlices, onSuccess, onFailure) { };\n\n/**\n * @typedef {Function} AppGlanceReloadSuccessCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload is successful.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n /**\n * @typedef {Function} AppGlanceReloadFailureCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload has failed.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n/**\n * @typedef {Function} AppMessageAckCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message.\n */\n\n/**\n * @typedef {Function} AppMessageNackCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is not acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message\n * @param {String} error - The error message\n */\n\n/**\n * @typedef {Function} EventCallback\n * @memberof Pebble\n *\n * @desc Called when an event of any type previously registered occurs. The\n * parameters are different depending on the type of event, shown in\n * brackets for each parameter listed here.\n * @param {Object} event - An object containing the event information, including:\n * * `type` - The type of event fired, from the list in the description of ``Pebble.addEventListener()``.\n * * `payload` - The dictionary sent over ``AppMessage`` consisting of\n * key-value pairs. *This field only exists for `appmessage` events.*\n * * `response` - The contents of the URL navigated to when the\n * configuration page was closed, after the anchor. This may be encoded,\n * which will require use of decodeURIComponent() before reading as an\n * object. *This field only exists for for `webviewclosed` events.*\n */\n\n/**\n * @typedef {Function} TimelineTokenCallback\n * @memberof Pebble\n *\n * @desc Called when the user's timeline token is available.\n * @param {String} token - The user's token.\n */\n\n/**\n * @typedef {Function} TimelineTopicsCallback\n * @memberof Pebble\n *\n * @desc Called when the user's list of subscriptions is available for processing by the developer.\n * @param {[String]} List of topic strings that the user is subscribed to\n */\n\n/**\n * @typedef {Object} WatchInfo\n * @memberof Pebble\n *\n * @desc Provides information about the connected Pebble smartwatch.\n *\n * @property {String} platform - The hardware platform, such as `basalt` or `emery`.\n * @property {String} model - The watch model, such as `pebble_black`\n * @property {String} language - The user's currently selected language on\n * this watch.\n * @property {Object} firmware - An object containing information about the\n * watch's firmware version, including:\n * * `major` - The major version\n * * `minor` - The minor version\n * * `patch` - The patch version\n * * `suffix` - Any additional version information, such as `beta3`\n*/\n\n/**\n * @typedef {Object} AppGlanceSlice\n * @memberof Pebble\n *\n * @desc The structure of an app glance.\n *\n * @property {String} expirationTime - Optional ISO date-time string of when \n the entry should expire and no longer be shown in the app glance.\n * @property {Object} layout - An object containing:\n * * `icon` - URI string of the icon to display in the app glance, e.g. system://images/ALARM_CLOCK.\n * * `subtitleTemplateString` - Template string that will be displayed in the subtitle of the app glance.\n*/\n" }, "params": [ @@ -1668,7 +1668,7 @@ "column": 65 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js", + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js", "code": "/**\n * @namespace Pebble\n *\n * @desc The Pebble namespace is where all of the Pebble specific methods and\n * properties exist. This class contains methods belonging to PebbleKit JS and\n * allows bi-directional communication with a C watchapp, as well as managing\n * the user's timeline subscriptions and obtaining information about their\n * watch.\n */\nvar Pebble = new Object;\n\n\n/**\n * @desc Adds a listener for Pebble JS events, such as when an ``AppMessage`` is\n * received or the configuration view is opened or closed.\n *\n * #### `event` Options\n *\n * Possible values:\n *\n * * `ready` - The watchapp has been launched and the PebbleKit JS component\n * is now ready to receive events.\n * * `appmessage` - The watch sent an ``AppMessage`` to PebbleKit JS. The\n * AppMessage ``Dictionary`` is contained in the payload property (i.e:\n * event.payload). The payload consists of key-value pairs, where the keys\n * are strings containing integers (e.g: \"0\"), or aliases for keys defined\n * in package.json (e.g: \"KEY_EXAMPLE\"). Values should be integers, strings\n * or byte arrays (arrays of characters).\n * * `showConfiguration` - The user has requested the app's configuration\n * webview to be displayed. This can occur either upon the app's initial\n * install or when the user taps 'Settings' in the 'My Pebble' view withtin\n * the phone app.\n * * `webviewclosed` - The configuration webview was closed by the user. If\n * the webview had a response, it will be contained in the response property\n * (i.e: event.response). This response can be used to feed back user\n * preferences to the watchapp.\n *\n * @param {String} event - The type of the event, from the list described above.\n * @param {EventCallback} callback - The developer defined {@link #EventCallback EventCallback}\n * to receive any events of the type specified that occur.\n*/\nPebble.addEventListener = function(event, callback) { };\n\n/**\n * @desc Remove an existing event listener previously registered with\n * ``Pebble.addEventListener()``.\n *\n * @param {String} type - The type of the event listener to be removed. See\n * ``Pebble.addEventListener()`` for a list of available types.\n * @param {Function} callback - The existing developer-defined function that was\n * previously registered.\n */\nPebble.removeEventListener = function(type, callback) { };\n\n/**\n * @desc Show a simple modal notification on the connected watch.\n *\n * @param {String} title - The title of the notification\n * @param {String} body - The main content of the notification\n */\nPebble.showSimpleNotificationOnPebble = function(title, body) { };\n\n/**\n * @desc Send an AppMessage to the app running on the watch. Messages should be\n * in the form of JSON objects containing key-value pairs. See\n * Pebble.sendAppMessage() for valid key and value data types.\n * Pebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n *\n * @returns {Number} The transaction id for this message\n *\n * @param {Object} data - A JSON object containing key-value pairs to send to\n * the watch. Values in arrays that are greater then 255 will be mod 255\n * before sending.\n * @param {AppMessageAckCallback} onSuccess - A developer-defined {@link #AppMessageAckCallback AppMessageAckCallback}\n * callback to run if the watch acknowledges (ACK) this message.\n * @param {AppMessageOnFailure} onSuccess - A developer-defined {@link #AppMessageNackCallback AppMessageNackCallback}\n * callback to run if the watch does not acknowledges (NACK) this message.\n */\nPebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n\n\n/**\n * @desc Get the user's timeline token for this app. This is a string and is\n * unique per user per app. Note: In order for timeline tokens to be\n * available, the app must be submitted to the Pebble appstore, but does not\n * need to be public. Read more in the\n * {@link /guides/pebble-timeline/timeline-js/ timeline guides}.\n *\n * @param {TimelineTokenCallback} onSuccess - A developer-defined {@link #TimelineTokenCallback TimelineTokenCallback}\n * callback to handle a successful attempt to get the timeline token.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed attempt to get the timeline token.\n */Pebble.getTimelineToken = function(onSuccess, onFailure) { };\n\n/**\n * @desc Subscribe the user to a timeline topic for your app. This can be used\n * to filter the different pins a user could receive according to their\n * preferences, as well as maintain groups of users.\n *\n * @param {String} topic - The desired topic to be subscribed to. Users will\n * receive all pins pushed to this topic.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful subscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed subscription attempt.\n */\nPebble.timelineSubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Unsubscribe the user from a timeline topic for your app. Once\n * unsubscribed, the user will no longer receive any pins pushed to this\n * topic.\n *\n * @param {String} topic - The desired topic to be unsubscribed from.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful unsubscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed unsubscription attempt.\n */\nPebble.timelineUnsubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Obtain a list of topics that the user is currently subscribed to. The\n * length of the list should be checked to determine whether the user is\n * subscribed to at least one topic.\n *\n * @param {TimelineTopicsCallback} onSuccess - The developer-defined function to process the\n * retuned list of topic strings.\n * @param {Function} onFailure - The developer-defined function to gracefully\n * handle any errors in obtaining the user's subscriptions.\n */\nPebble.timelineSubscription = function(onSuccess, onFailure) { };\n\n\n/**\n * @desc Obtain an object containing information on the currently connected\n * Pebble smartwatch.\n *\n * **Note:** This function is only available when using the Pebble Time\n * smartphone app. Check out our guide on {@link /guides/communication/using-pebblekit-js Getting Watch Information}\n * for details on how to use this function.\n *\n * @returns {WatchInfo} A {@link #WatchInfo WatchInfo} object detailing the\n * currently connected Pebble watch.\n */\nPebble.getActiveWatchInfo = function() { };\n\n/**\n * @desc Returns a unique account token that is associated with the Pebble\n * account of the current user.\n *\n * **Note:** The behavior of this changed slightly in SDK 3.0. Read the\n * {@link /guides/migration/migration-guide-3/ Migration Guide} to learn the\n * details and how to adapt older tokens.\n *\n * @returns {String} A string that is guaranteed to be identical across devices\n * if the user owns several Pebble or several mobile devices. From the\n * developer's perspective, the account token of a user is identical across\n * platforms and across all the developer's watchapps. If the user is not\n * logged in, this function will return an empty string ('').\n */\n\nPebble.getAccountToken = function() { };\n\n/**\n * @desc Returns a a unique token that can be used to identify a Pebble device.\n *\n * @returns {String} A string that is is guaranteed to be identical for each\n * Pebble device for the same app across different mobile devices. The token\n * is unique to your app and cannot be used to track Pebble devices across\n * applications.\n */\nPebble.getWatchToken = function() { };\n\n\n/**\n * @desc Triggers a reload of the app glance which first clears any existing \n * slices and then adds the provided slices.\n *\n * @param {AppGlanceSlice} appGlanceSlices - {@link #AppGlanceSlice AppGlanceSlice} \n * JSON objects to add to the app glance.\n * @param {AppGlanceReloadSuccessCallback} onSuccess - The developer-defined \n * callback which is called if the reload operation succeeds.\n * @param {AppGlanceReloadFailureCallback} onFailure - The developer-defined \n * callback which is called if the reload operation fails.\n */\nPebble.appGlanceReload = function(appGlanceSlices, onSuccess, onFailure) { };\n\n/**\n * @typedef {Function} AppGlanceReloadSuccessCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload is successful.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n /**\n * @typedef {Function} AppGlanceReloadFailureCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload has failed.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n/**\n * @typedef {Function} AppMessageAckCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message.\n */\n\n/**\n * @typedef {Function} AppMessageNackCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is not acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message\n * @param {String} error - The error message\n */\n\n/**\n * @typedef {Function} EventCallback\n * @memberof Pebble\n *\n * @desc Called when an event of any type previously registered occurs. The\n * parameters are different depending on the type of event, shown in\n * brackets for each parameter listed here.\n * @param {Object} event - An object containing the event information, including:\n * * `type` - The type of event fired, from the list in the description of ``Pebble.addEventListener()``.\n * * `payload` - The dictionary sent over ``AppMessage`` consisting of\n * key-value pairs. *This field only exists for `appmessage` events.*\n * * `response` - The contents of the URL navigated to when the\n * configuration page was closed, after the anchor. This may be encoded,\n * which will require use of decodeURIComponent() before reading as an\n * object. *This field only exists for for `webviewclosed` events.*\n */\n\n/**\n * @typedef {Function} TimelineTokenCallback\n * @memberof Pebble\n *\n * @desc Called when the user's timeline token is available.\n * @param {String} token - The user's token.\n */\n\n/**\n * @typedef {Function} TimelineTopicsCallback\n * @memberof Pebble\n *\n * @desc Called when the user's list of subscriptions is available for processing by the developer.\n * @param {[String]} List of topic strings that the user is subscribed to\n */\n\n/**\n * @typedef {Object} WatchInfo\n * @memberof Pebble\n *\n * @desc Provides information about the connected Pebble smartwatch.\n *\n * @property {String} platform - The hardware platform, such as `basalt` or `emery`.\n * @property {String} model - The watch model, such as `pebble_black`\n * @property {String} language - The user's currently selected language on\n * this watch.\n * @property {Object} firmware - An object containing information about the\n * watch's firmware version, including:\n * * `major` - The major version\n * * `minor` - The minor version\n * * `patch` - The patch version\n * * `suffix` - Any additional version information, such as `beta3`\n*/\n\n/**\n * @typedef {Object} AppGlanceSlice\n * @memberof Pebble\n *\n * @desc The structure of an app glance.\n *\n * @property {String} expirationTime - Optional ISO date-time string of when \n the entry should expire and no longer be shown in the app glance.\n * @property {Object} layout - An object containing:\n * * `icon` - URI string of the icon to display in the app glance, e.g. system://images/ALARM_CLOCK.\n * * `subtitleTemplateString` - Template string that will be displayed in the subtitle of the app glance.\n*/\n" }, "returns": [ @@ -2190,7 +2190,7 @@ "column": 64 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js", + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js", "code": "/**\n * @namespace Pebble\n *\n * @desc The Pebble namespace is where all of the Pebble specific methods and\n * properties exist. This class contains methods belonging to PebbleKit JS and\n * allows bi-directional communication with a C watchapp, as well as managing\n * the user's timeline subscriptions and obtaining information about their\n * watch.\n */\nvar Pebble = new Object;\n\n\n/**\n * @desc Adds a listener for Pebble JS events, such as when an ``AppMessage`` is\n * received or the configuration view is opened or closed.\n *\n * #### `event` Options\n *\n * Possible values:\n *\n * * `ready` - The watchapp has been launched and the PebbleKit JS component\n * is now ready to receive events.\n * * `appmessage` - The watch sent an ``AppMessage`` to PebbleKit JS. The\n * AppMessage ``Dictionary`` is contained in the payload property (i.e:\n * event.payload). The payload consists of key-value pairs, where the keys\n * are strings containing integers (e.g: \"0\"), or aliases for keys defined\n * in package.json (e.g: \"KEY_EXAMPLE\"). Values should be integers, strings\n * or byte arrays (arrays of characters).\n * * `showConfiguration` - The user has requested the app's configuration\n * webview to be displayed. This can occur either upon the app's initial\n * install or when the user taps 'Settings' in the 'My Pebble' view withtin\n * the phone app.\n * * `webviewclosed` - The configuration webview was closed by the user. If\n * the webview had a response, it will be contained in the response property\n * (i.e: event.response). This response can be used to feed back user\n * preferences to the watchapp.\n *\n * @param {String} event - The type of the event, from the list described above.\n * @param {EventCallback} callback - The developer defined {@link #EventCallback EventCallback}\n * to receive any events of the type specified that occur.\n*/\nPebble.addEventListener = function(event, callback) { };\n\n/**\n * @desc Remove an existing event listener previously registered with\n * ``Pebble.addEventListener()``.\n *\n * @param {String} type - The type of the event listener to be removed. See\n * ``Pebble.addEventListener()`` for a list of available types.\n * @param {Function} callback - The existing developer-defined function that was\n * previously registered.\n */\nPebble.removeEventListener = function(type, callback) { };\n\n/**\n * @desc Show a simple modal notification on the connected watch.\n *\n * @param {String} title - The title of the notification\n * @param {String} body - The main content of the notification\n */\nPebble.showSimpleNotificationOnPebble = function(title, body) { };\n\n/**\n * @desc Send an AppMessage to the app running on the watch. Messages should be\n * in the form of JSON objects containing key-value pairs. See\n * Pebble.sendAppMessage() for valid key and value data types.\n * Pebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n *\n * @returns {Number} The transaction id for this message\n *\n * @param {Object} data - A JSON object containing key-value pairs to send to\n * the watch. Values in arrays that are greater then 255 will be mod 255\n * before sending.\n * @param {AppMessageAckCallback} onSuccess - A developer-defined {@link #AppMessageAckCallback AppMessageAckCallback}\n * callback to run if the watch acknowledges (ACK) this message.\n * @param {AppMessageOnFailure} onSuccess - A developer-defined {@link #AppMessageNackCallback AppMessageNackCallback}\n * callback to run if the watch does not acknowledges (NACK) this message.\n */\nPebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n\n\n/**\n * @desc Get the user's timeline token for this app. This is a string and is\n * unique per user per app. Note: In order for timeline tokens to be\n * available, the app must be submitted to the Pebble appstore, but does not\n * need to be public. Read more in the\n * {@link /guides/pebble-timeline/timeline-js/ timeline guides}.\n *\n * @param {TimelineTokenCallback} onSuccess - A developer-defined {@link #TimelineTokenCallback TimelineTokenCallback}\n * callback to handle a successful attempt to get the timeline token.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed attempt to get the timeline token.\n */Pebble.getTimelineToken = function(onSuccess, onFailure) { };\n\n/**\n * @desc Subscribe the user to a timeline topic for your app. This can be used\n * to filter the different pins a user could receive according to their\n * preferences, as well as maintain groups of users.\n *\n * @param {String} topic - The desired topic to be subscribed to. Users will\n * receive all pins pushed to this topic.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful subscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed subscription attempt.\n */\nPebble.timelineSubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Unsubscribe the user from a timeline topic for your app. Once\n * unsubscribed, the user will no longer receive any pins pushed to this\n * topic.\n *\n * @param {String} topic - The desired topic to be unsubscribed from.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful unsubscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed unsubscription attempt.\n */\nPebble.timelineUnsubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Obtain a list of topics that the user is currently subscribed to. The\n * length of the list should be checked to determine whether the user is\n * subscribed to at least one topic.\n *\n * @param {TimelineTopicsCallback} onSuccess - The developer-defined function to process the\n * retuned list of topic strings.\n * @param {Function} onFailure - The developer-defined function to gracefully\n * handle any errors in obtaining the user's subscriptions.\n */\nPebble.timelineSubscription = function(onSuccess, onFailure) { };\n\n\n/**\n * @desc Obtain an object containing information on the currently connected\n * Pebble smartwatch.\n *\n * **Note:** This function is only available when using the Pebble Time\n * smartphone app. Check out our guide on {@link /guides/communication/using-pebblekit-js Getting Watch Information}\n * for details on how to use this function.\n *\n * @returns {WatchInfo} A {@link #WatchInfo WatchInfo} object detailing the\n * currently connected Pebble watch.\n */\nPebble.getActiveWatchInfo = function() { };\n\n/**\n * @desc Returns a unique account token that is associated with the Pebble\n * account of the current user.\n *\n * **Note:** The behavior of this changed slightly in SDK 3.0. Read the\n * {@link /guides/migration/migration-guide-3/ Migration Guide} to learn the\n * details and how to adapt older tokens.\n *\n * @returns {String} A string that is guaranteed to be identical across devices\n * if the user owns several Pebble or several mobile devices. From the\n * developer's perspective, the account token of a user is identical across\n * platforms and across all the developer's watchapps. If the user is not\n * logged in, this function will return an empty string ('').\n */\n\nPebble.getAccountToken = function() { };\n\n/**\n * @desc Returns a a unique token that can be used to identify a Pebble device.\n *\n * @returns {String} A string that is is guaranteed to be identical for each\n * Pebble device for the same app across different mobile devices. The token\n * is unique to your app and cannot be used to track Pebble devices across\n * applications.\n */\nPebble.getWatchToken = function() { };\n\n\n/**\n * @desc Triggers a reload of the app glance which first clears any existing \n * slices and then adds the provided slices.\n *\n * @param {AppGlanceSlice} appGlanceSlices - {@link #AppGlanceSlice AppGlanceSlice} \n * JSON objects to add to the app glance.\n * @param {AppGlanceReloadSuccessCallback} onSuccess - The developer-defined \n * callback which is called if the reload operation succeeds.\n * @param {AppGlanceReloadFailureCallback} onFailure - The developer-defined \n * callback which is called if the reload operation fails.\n */\nPebble.appGlanceReload = function(appGlanceSlices, onSuccess, onFailure) { };\n\n/**\n * @typedef {Function} AppGlanceReloadSuccessCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload is successful.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n /**\n * @typedef {Function} AppGlanceReloadFailureCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload has failed.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n/**\n * @typedef {Function} AppMessageAckCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message.\n */\n\n/**\n * @typedef {Function} AppMessageNackCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is not acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message\n * @param {String} error - The error message\n */\n\n/**\n * @typedef {Function} EventCallback\n * @memberof Pebble\n *\n * @desc Called when an event of any type previously registered occurs. The\n * parameters are different depending on the type of event, shown in\n * brackets for each parameter listed here.\n * @param {Object} event - An object containing the event information, including:\n * * `type` - The type of event fired, from the list in the description of ``Pebble.addEventListener()``.\n * * `payload` - The dictionary sent over ``AppMessage`` consisting of\n * key-value pairs. *This field only exists for `appmessage` events.*\n * * `response` - The contents of the URL navigated to when the\n * configuration page was closed, after the anchor. This may be encoded,\n * which will require use of decodeURIComponent() before reading as an\n * object. *This field only exists for for `webviewclosed` events.*\n */\n\n/**\n * @typedef {Function} TimelineTokenCallback\n * @memberof Pebble\n *\n * @desc Called when the user's timeline token is available.\n * @param {String} token - The user's token.\n */\n\n/**\n * @typedef {Function} TimelineTopicsCallback\n * @memberof Pebble\n *\n * @desc Called when the user's list of subscriptions is available for processing by the developer.\n * @param {[String]} List of topic strings that the user is subscribed to\n */\n\n/**\n * @typedef {Object} WatchInfo\n * @memberof Pebble\n *\n * @desc Provides information about the connected Pebble smartwatch.\n *\n * @property {String} platform - The hardware platform, such as `basalt` or `emery`.\n * @property {String} model - The watch model, such as `pebble_black`\n * @property {String} language - The user's currently selected language on\n * this watch.\n * @property {Object} firmware - An object containing information about the\n * watch's firmware version, including:\n * * `major` - The major version\n * * `minor` - The minor version\n * * `patch` - The patch version\n * * `suffix` - Any additional version information, such as `beta3`\n*/\n\n/**\n * @typedef {Object} AppGlanceSlice\n * @memberof Pebble\n *\n * @desc The structure of an app glance.\n *\n * @property {String} expirationTime - Optional ISO date-time string of when \n the entry should expire and no longer be shown in the app glance.\n * @property {Object} layout - An object containing:\n * * `icon` - URI string of the icon to display in the app glance, e.g. system://images/ALARM_CLOCK.\n * * `subtitleTemplateString` - Template string that will be displayed in the subtitle of the app glance.\n*/\n" }, "params": [ @@ -2503,7 +2503,7 @@ "column": 69 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js", + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js", "code": "/**\n * @namespace Pebble\n *\n * @desc The Pebble namespace is where all of the Pebble specific methods and\n * properties exist. This class contains methods belonging to PebbleKit JS and\n * allows bi-directional communication with a C watchapp, as well as managing\n * the user's timeline subscriptions and obtaining information about their\n * watch.\n */\nvar Pebble = new Object;\n\n\n/**\n * @desc Adds a listener for Pebble JS events, such as when an ``AppMessage`` is\n * received or the configuration view is opened or closed.\n *\n * #### `event` Options\n *\n * Possible values:\n *\n * * `ready` - The watchapp has been launched and the PebbleKit JS component\n * is now ready to receive events.\n * * `appmessage` - The watch sent an ``AppMessage`` to PebbleKit JS. The\n * AppMessage ``Dictionary`` is contained in the payload property (i.e:\n * event.payload). The payload consists of key-value pairs, where the keys\n * are strings containing integers (e.g: \"0\"), or aliases for keys defined\n * in package.json (e.g: \"KEY_EXAMPLE\"). Values should be integers, strings\n * or byte arrays (arrays of characters).\n * * `showConfiguration` - The user has requested the app's configuration\n * webview to be displayed. This can occur either upon the app's initial\n * install or when the user taps 'Settings' in the 'My Pebble' view withtin\n * the phone app.\n * * `webviewclosed` - The configuration webview was closed by the user. If\n * the webview had a response, it will be contained in the response property\n * (i.e: event.response). This response can be used to feed back user\n * preferences to the watchapp.\n *\n * @param {String} event - The type of the event, from the list described above.\n * @param {EventCallback} callback - The developer defined {@link #EventCallback EventCallback}\n * to receive any events of the type specified that occur.\n*/\nPebble.addEventListener = function(event, callback) { };\n\n/**\n * @desc Remove an existing event listener previously registered with\n * ``Pebble.addEventListener()``.\n *\n * @param {String} type - The type of the event listener to be removed. See\n * ``Pebble.addEventListener()`` for a list of available types.\n * @param {Function} callback - The existing developer-defined function that was\n * previously registered.\n */\nPebble.removeEventListener = function(type, callback) { };\n\n/**\n * @desc Show a simple modal notification on the connected watch.\n *\n * @param {String} title - The title of the notification\n * @param {String} body - The main content of the notification\n */\nPebble.showSimpleNotificationOnPebble = function(title, body) { };\n\n/**\n * @desc Send an AppMessage to the app running on the watch. Messages should be\n * in the form of JSON objects containing key-value pairs. See\n * Pebble.sendAppMessage() for valid key and value data types.\n * Pebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n *\n * @returns {Number} The transaction id for this message\n *\n * @param {Object} data - A JSON object containing key-value pairs to send to\n * the watch. Values in arrays that are greater then 255 will be mod 255\n * before sending.\n * @param {AppMessageAckCallback} onSuccess - A developer-defined {@link #AppMessageAckCallback AppMessageAckCallback}\n * callback to run if the watch acknowledges (ACK) this message.\n * @param {AppMessageOnFailure} onSuccess - A developer-defined {@link #AppMessageNackCallback AppMessageNackCallback}\n * callback to run if the watch does not acknowledges (NACK) this message.\n */\nPebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n\n\n/**\n * @desc Get the user's timeline token for this app. This is a string and is\n * unique per user per app. Note: In order for timeline tokens to be\n * available, the app must be submitted to the Pebble appstore, but does not\n * need to be public. Read more in the\n * {@link /guides/pebble-timeline/timeline-js/ timeline guides}.\n *\n * @param {TimelineTokenCallback} onSuccess - A developer-defined {@link #TimelineTokenCallback TimelineTokenCallback}\n * callback to handle a successful attempt to get the timeline token.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed attempt to get the timeline token.\n */Pebble.getTimelineToken = function(onSuccess, onFailure) { };\n\n/**\n * @desc Subscribe the user to a timeline topic for your app. This can be used\n * to filter the different pins a user could receive according to their\n * preferences, as well as maintain groups of users.\n *\n * @param {String} topic - The desired topic to be subscribed to. Users will\n * receive all pins pushed to this topic.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful subscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed subscription attempt.\n */\nPebble.timelineSubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Unsubscribe the user from a timeline topic for your app. Once\n * unsubscribed, the user will no longer receive any pins pushed to this\n * topic.\n *\n * @param {String} topic - The desired topic to be unsubscribed from.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful unsubscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed unsubscription attempt.\n */\nPebble.timelineUnsubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Obtain a list of topics that the user is currently subscribed to. The\n * length of the list should be checked to determine whether the user is\n * subscribed to at least one topic.\n *\n * @param {TimelineTopicsCallback} onSuccess - The developer-defined function to process the\n * retuned list of topic strings.\n * @param {Function} onFailure - The developer-defined function to gracefully\n * handle any errors in obtaining the user's subscriptions.\n */\nPebble.timelineSubscription = function(onSuccess, onFailure) { };\n\n\n/**\n * @desc Obtain an object containing information on the currently connected\n * Pebble smartwatch.\n *\n * **Note:** This function is only available when using the Pebble Time\n * smartphone app. Check out our guide on {@link /guides/communication/using-pebblekit-js Getting Watch Information}\n * for details on how to use this function.\n *\n * @returns {WatchInfo} A {@link #WatchInfo WatchInfo} object detailing the\n * currently connected Pebble watch.\n */\nPebble.getActiveWatchInfo = function() { };\n\n/**\n * @desc Returns a unique account token that is associated with the Pebble\n * account of the current user.\n *\n * **Note:** The behavior of this changed slightly in SDK 3.0. Read the\n * {@link /guides/migration/migration-guide-3/ Migration Guide} to learn the\n * details and how to adapt older tokens.\n *\n * @returns {String} A string that is guaranteed to be identical across devices\n * if the user owns several Pebble or several mobile devices. From the\n * developer's perspective, the account token of a user is identical across\n * platforms and across all the developer's watchapps. If the user is not\n * logged in, this function will return an empty string ('').\n */\n\nPebble.getAccountToken = function() { };\n\n/**\n * @desc Returns a a unique token that can be used to identify a Pebble device.\n *\n * @returns {String} A string that is is guaranteed to be identical for each\n * Pebble device for the same app across different mobile devices. The token\n * is unique to your app and cannot be used to track Pebble devices across\n * applications.\n */\nPebble.getWatchToken = function() { };\n\n\n/**\n * @desc Triggers a reload of the app glance which first clears any existing \n * slices and then adds the provided slices.\n *\n * @param {AppGlanceSlice} appGlanceSlices - {@link #AppGlanceSlice AppGlanceSlice} \n * JSON objects to add to the app glance.\n * @param {AppGlanceReloadSuccessCallback} onSuccess - The developer-defined \n * callback which is called if the reload operation succeeds.\n * @param {AppGlanceReloadFailureCallback} onFailure - The developer-defined \n * callback which is called if the reload operation fails.\n */\nPebble.appGlanceReload = function(appGlanceSlices, onSuccess, onFailure) { };\n\n/**\n * @typedef {Function} AppGlanceReloadSuccessCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload is successful.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n /**\n * @typedef {Function} AppGlanceReloadFailureCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload has failed.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n/**\n * @typedef {Function} AppMessageAckCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message.\n */\n\n/**\n * @typedef {Function} AppMessageNackCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is not acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message\n * @param {String} error - The error message\n */\n\n/**\n * @typedef {Function} EventCallback\n * @memberof Pebble\n *\n * @desc Called when an event of any type previously registered occurs. The\n * parameters are different depending on the type of event, shown in\n * brackets for each parameter listed here.\n * @param {Object} event - An object containing the event information, including:\n * * `type` - The type of event fired, from the list in the description of ``Pebble.addEventListener()``.\n * * `payload` - The dictionary sent over ``AppMessage`` consisting of\n * key-value pairs. *This field only exists for `appmessage` events.*\n * * `response` - The contents of the URL navigated to when the\n * configuration page was closed, after the anchor. This may be encoded,\n * which will require use of decodeURIComponent() before reading as an\n * object. *This field only exists for for `webviewclosed` events.*\n */\n\n/**\n * @typedef {Function} TimelineTokenCallback\n * @memberof Pebble\n *\n * @desc Called when the user's timeline token is available.\n * @param {String} token - The user's token.\n */\n\n/**\n * @typedef {Function} TimelineTopicsCallback\n * @memberof Pebble\n *\n * @desc Called when the user's list of subscriptions is available for processing by the developer.\n * @param {[String]} List of topic strings that the user is subscribed to\n */\n\n/**\n * @typedef {Object} WatchInfo\n * @memberof Pebble\n *\n * @desc Provides information about the connected Pebble smartwatch.\n *\n * @property {String} platform - The hardware platform, such as `basalt` or `emery`.\n * @property {String} model - The watch model, such as `pebble_black`\n * @property {String} language - The user's currently selected language on\n * this watch.\n * @property {Object} firmware - An object containing information about the\n * watch's firmware version, including:\n * * `major` - The major version\n * * `minor` - The minor version\n * * `patch` - The patch version\n * * `suffix` - Any additional version information, such as `beta3`\n*/\n\n/**\n * @typedef {Object} AppGlanceSlice\n * @memberof Pebble\n *\n * @desc The structure of an app glance.\n *\n * @property {String} expirationTime - Optional ISO date-time string of when \n the entry should expire and no longer be shown in the app glance.\n * @property {Object} layout - An object containing:\n * * `icon` - URI string of the icon to display in the app glance, e.g. system://images/ALARM_CLOCK.\n * * `subtitleTemplateString` - Template string that will be displayed in the subtitle of the app glance.\n*/\n" }, "params": [ @@ -2838,7 +2838,7 @@ "column": 71 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js", + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js", "code": "/**\n * @namespace Pebble\n *\n * @desc The Pebble namespace is where all of the Pebble specific methods and\n * properties exist. This class contains methods belonging to PebbleKit JS and\n * allows bi-directional communication with a C watchapp, as well as managing\n * the user's timeline subscriptions and obtaining information about their\n * watch.\n */\nvar Pebble = new Object;\n\n\n/**\n * @desc Adds a listener for Pebble JS events, such as when an ``AppMessage`` is\n * received or the configuration view is opened or closed.\n *\n * #### `event` Options\n *\n * Possible values:\n *\n * * `ready` - The watchapp has been launched and the PebbleKit JS component\n * is now ready to receive events.\n * * `appmessage` - The watch sent an ``AppMessage`` to PebbleKit JS. The\n * AppMessage ``Dictionary`` is contained in the payload property (i.e:\n * event.payload). The payload consists of key-value pairs, where the keys\n * are strings containing integers (e.g: \"0\"), or aliases for keys defined\n * in package.json (e.g: \"KEY_EXAMPLE\"). Values should be integers, strings\n * or byte arrays (arrays of characters).\n * * `showConfiguration` - The user has requested the app's configuration\n * webview to be displayed. This can occur either upon the app's initial\n * install or when the user taps 'Settings' in the 'My Pebble' view withtin\n * the phone app.\n * * `webviewclosed` - The configuration webview was closed by the user. If\n * the webview had a response, it will be contained in the response property\n * (i.e: event.response). This response can be used to feed back user\n * preferences to the watchapp.\n *\n * @param {String} event - The type of the event, from the list described above.\n * @param {EventCallback} callback - The developer defined {@link #EventCallback EventCallback}\n * to receive any events of the type specified that occur.\n*/\nPebble.addEventListener = function(event, callback) { };\n\n/**\n * @desc Remove an existing event listener previously registered with\n * ``Pebble.addEventListener()``.\n *\n * @param {String} type - The type of the event listener to be removed. See\n * ``Pebble.addEventListener()`` for a list of available types.\n * @param {Function} callback - The existing developer-defined function that was\n * previously registered.\n */\nPebble.removeEventListener = function(type, callback) { };\n\n/**\n * @desc Show a simple modal notification on the connected watch.\n *\n * @param {String} title - The title of the notification\n * @param {String} body - The main content of the notification\n */\nPebble.showSimpleNotificationOnPebble = function(title, body) { };\n\n/**\n * @desc Send an AppMessage to the app running on the watch. Messages should be\n * in the form of JSON objects containing key-value pairs. See\n * Pebble.sendAppMessage() for valid key and value data types.\n * Pebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n *\n * @returns {Number} The transaction id for this message\n *\n * @param {Object} data - A JSON object containing key-value pairs to send to\n * the watch. Values in arrays that are greater then 255 will be mod 255\n * before sending.\n * @param {AppMessageAckCallback} onSuccess - A developer-defined {@link #AppMessageAckCallback AppMessageAckCallback}\n * callback to run if the watch acknowledges (ACK) this message.\n * @param {AppMessageOnFailure} onSuccess - A developer-defined {@link #AppMessageNackCallback AppMessageNackCallback}\n * callback to run if the watch does not acknowledges (NACK) this message.\n */\nPebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n\n\n/**\n * @desc Get the user's timeline token for this app. This is a string and is\n * unique per user per app. Note: In order for timeline tokens to be\n * available, the app must be submitted to the Pebble appstore, but does not\n * need to be public. Read more in the\n * {@link /guides/pebble-timeline/timeline-js/ timeline guides}.\n *\n * @param {TimelineTokenCallback} onSuccess - A developer-defined {@link #TimelineTokenCallback TimelineTokenCallback}\n * callback to handle a successful attempt to get the timeline token.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed attempt to get the timeline token.\n */Pebble.getTimelineToken = function(onSuccess, onFailure) { };\n\n/**\n * @desc Subscribe the user to a timeline topic for your app. This can be used\n * to filter the different pins a user could receive according to their\n * preferences, as well as maintain groups of users.\n *\n * @param {String} topic - The desired topic to be subscribed to. Users will\n * receive all pins pushed to this topic.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful subscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed subscription attempt.\n */\nPebble.timelineSubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Unsubscribe the user from a timeline topic for your app. Once\n * unsubscribed, the user will no longer receive any pins pushed to this\n * topic.\n *\n * @param {String} topic - The desired topic to be unsubscribed from.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful unsubscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed unsubscription attempt.\n */\nPebble.timelineUnsubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Obtain a list of topics that the user is currently subscribed to. The\n * length of the list should be checked to determine whether the user is\n * subscribed to at least one topic.\n *\n * @param {TimelineTopicsCallback} onSuccess - The developer-defined function to process the\n * retuned list of topic strings.\n * @param {Function} onFailure - The developer-defined function to gracefully\n * handle any errors in obtaining the user's subscriptions.\n */\nPebble.timelineSubscription = function(onSuccess, onFailure) { };\n\n\n/**\n * @desc Obtain an object containing information on the currently connected\n * Pebble smartwatch.\n *\n * **Note:** This function is only available when using the Pebble Time\n * smartphone app. Check out our guide on {@link /guides/communication/using-pebblekit-js Getting Watch Information}\n * for details on how to use this function.\n *\n * @returns {WatchInfo} A {@link #WatchInfo WatchInfo} object detailing the\n * currently connected Pebble watch.\n */\nPebble.getActiveWatchInfo = function() { };\n\n/**\n * @desc Returns a unique account token that is associated with the Pebble\n * account of the current user.\n *\n * **Note:** The behavior of this changed slightly in SDK 3.0. Read the\n * {@link /guides/migration/migration-guide-3/ Migration Guide} to learn the\n * details and how to adapt older tokens.\n *\n * @returns {String} A string that is guaranteed to be identical across devices\n * if the user owns several Pebble or several mobile devices. From the\n * developer's perspective, the account token of a user is identical across\n * platforms and across all the developer's watchapps. If the user is not\n * logged in, this function will return an empty string ('').\n */\n\nPebble.getAccountToken = function() { };\n\n/**\n * @desc Returns a a unique token that can be used to identify a Pebble device.\n *\n * @returns {String} A string that is is guaranteed to be identical for each\n * Pebble device for the same app across different mobile devices. The token\n * is unique to your app and cannot be used to track Pebble devices across\n * applications.\n */\nPebble.getWatchToken = function() { };\n\n\n/**\n * @desc Triggers a reload of the app glance which first clears any existing \n * slices and then adds the provided slices.\n *\n * @param {AppGlanceSlice} appGlanceSlices - {@link #AppGlanceSlice AppGlanceSlice} \n * JSON objects to add to the app glance.\n * @param {AppGlanceReloadSuccessCallback} onSuccess - The developer-defined \n * callback which is called if the reload operation succeeds.\n * @param {AppGlanceReloadFailureCallback} onFailure - The developer-defined \n * callback which is called if the reload operation fails.\n */\nPebble.appGlanceReload = function(appGlanceSlices, onSuccess, onFailure) { };\n\n/**\n * @typedef {Function} AppGlanceReloadSuccessCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload is successful.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n /**\n * @typedef {Function} AppGlanceReloadFailureCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload has failed.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n/**\n * @typedef {Function} AppMessageAckCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message.\n */\n\n/**\n * @typedef {Function} AppMessageNackCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is not acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message\n * @param {String} error - The error message\n */\n\n/**\n * @typedef {Function} EventCallback\n * @memberof Pebble\n *\n * @desc Called when an event of any type previously registered occurs. The\n * parameters are different depending on the type of event, shown in\n * brackets for each parameter listed here.\n * @param {Object} event - An object containing the event information, including:\n * * `type` - The type of event fired, from the list in the description of ``Pebble.addEventListener()``.\n * * `payload` - The dictionary sent over ``AppMessage`` consisting of\n * key-value pairs. *This field only exists for `appmessage` events.*\n * * `response` - The contents of the URL navigated to when the\n * configuration page was closed, after the anchor. This may be encoded,\n * which will require use of decodeURIComponent() before reading as an\n * object. *This field only exists for for `webviewclosed` events.*\n */\n\n/**\n * @typedef {Function} TimelineTokenCallback\n * @memberof Pebble\n *\n * @desc Called when the user's timeline token is available.\n * @param {String} token - The user's token.\n */\n\n/**\n * @typedef {Function} TimelineTopicsCallback\n * @memberof Pebble\n *\n * @desc Called when the user's list of subscriptions is available for processing by the developer.\n * @param {[String]} List of topic strings that the user is subscribed to\n */\n\n/**\n * @typedef {Object} WatchInfo\n * @memberof Pebble\n *\n * @desc Provides information about the connected Pebble smartwatch.\n *\n * @property {String} platform - The hardware platform, such as `basalt` or `emery`.\n * @property {String} model - The watch model, such as `pebble_black`\n * @property {String} language - The user's currently selected language on\n * this watch.\n * @property {Object} firmware - An object containing information about the\n * watch's firmware version, including:\n * * `major` - The major version\n * * `minor` - The minor version\n * * `patch` - The patch version\n * * `suffix` - Any additional version information, such as `beta3`\n*/\n\n/**\n * @typedef {Object} AppGlanceSlice\n * @memberof Pebble\n *\n * @desc The structure of an app glance.\n *\n * @property {String} expirationTime - Optional ISO date-time string of when \n the entry should expire and no longer be shown in the app glance.\n * @property {Object} layout - An object containing:\n * * `icon` - URI string of the icon to display in the app glance, e.g. system://images/ALARM_CLOCK.\n * * `subtitleTemplateString` - Template string that will be displayed in the subtitle of the app glance.\n*/\n" }, "params": [ @@ -3159,7 +3159,7 @@ "column": 65 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js", + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js", "code": "/**\n * @namespace Pebble\n *\n * @desc The Pebble namespace is where all of the Pebble specific methods and\n * properties exist. This class contains methods belonging to PebbleKit JS and\n * allows bi-directional communication with a C watchapp, as well as managing\n * the user's timeline subscriptions and obtaining information about their\n * watch.\n */\nvar Pebble = new Object;\n\n\n/**\n * @desc Adds a listener for Pebble JS events, such as when an ``AppMessage`` is\n * received or the configuration view is opened or closed.\n *\n * #### `event` Options\n *\n * Possible values:\n *\n * * `ready` - The watchapp has been launched and the PebbleKit JS component\n * is now ready to receive events.\n * * `appmessage` - The watch sent an ``AppMessage`` to PebbleKit JS. The\n * AppMessage ``Dictionary`` is contained in the payload property (i.e:\n * event.payload). The payload consists of key-value pairs, where the keys\n * are strings containing integers (e.g: \"0\"), or aliases for keys defined\n * in package.json (e.g: \"KEY_EXAMPLE\"). Values should be integers, strings\n * or byte arrays (arrays of characters).\n * * `showConfiguration` - The user has requested the app's configuration\n * webview to be displayed. This can occur either upon the app's initial\n * install or when the user taps 'Settings' in the 'My Pebble' view withtin\n * the phone app.\n * * `webviewclosed` - The configuration webview was closed by the user. If\n * the webview had a response, it will be contained in the response property\n * (i.e: event.response). This response can be used to feed back user\n * preferences to the watchapp.\n *\n * @param {String} event - The type of the event, from the list described above.\n * @param {EventCallback} callback - The developer defined {@link #EventCallback EventCallback}\n * to receive any events of the type specified that occur.\n*/\nPebble.addEventListener = function(event, callback) { };\n\n/**\n * @desc Remove an existing event listener previously registered with\n * ``Pebble.addEventListener()``.\n *\n * @param {String} type - The type of the event listener to be removed. See\n * ``Pebble.addEventListener()`` for a list of available types.\n * @param {Function} callback - The existing developer-defined function that was\n * previously registered.\n */\nPebble.removeEventListener = function(type, callback) { };\n\n/**\n * @desc Show a simple modal notification on the connected watch.\n *\n * @param {String} title - The title of the notification\n * @param {String} body - The main content of the notification\n */\nPebble.showSimpleNotificationOnPebble = function(title, body) { };\n\n/**\n * @desc Send an AppMessage to the app running on the watch. Messages should be\n * in the form of JSON objects containing key-value pairs. See\n * Pebble.sendAppMessage() for valid key and value data types.\n * Pebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n *\n * @returns {Number} The transaction id for this message\n *\n * @param {Object} data - A JSON object containing key-value pairs to send to\n * the watch. Values in arrays that are greater then 255 will be mod 255\n * before sending.\n * @param {AppMessageAckCallback} onSuccess - A developer-defined {@link #AppMessageAckCallback AppMessageAckCallback}\n * callback to run if the watch acknowledges (ACK) this message.\n * @param {AppMessageOnFailure} onSuccess - A developer-defined {@link #AppMessageNackCallback AppMessageNackCallback}\n * callback to run if the watch does not acknowledges (NACK) this message.\n */\nPebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n\n\n/**\n * @desc Get the user's timeline token for this app. This is a string and is\n * unique per user per app. Note: In order for timeline tokens to be\n * available, the app must be submitted to the Pebble appstore, but does not\n * need to be public. Read more in the\n * {@link /guides/pebble-timeline/timeline-js/ timeline guides}.\n *\n * @param {TimelineTokenCallback} onSuccess - A developer-defined {@link #TimelineTokenCallback TimelineTokenCallback}\n * callback to handle a successful attempt to get the timeline token.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed attempt to get the timeline token.\n */Pebble.getTimelineToken = function(onSuccess, onFailure) { };\n\n/**\n * @desc Subscribe the user to a timeline topic for your app. This can be used\n * to filter the different pins a user could receive according to their\n * preferences, as well as maintain groups of users.\n *\n * @param {String} topic - The desired topic to be subscribed to. Users will\n * receive all pins pushed to this topic.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful subscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed subscription attempt.\n */\nPebble.timelineSubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Unsubscribe the user from a timeline topic for your app. Once\n * unsubscribed, the user will no longer receive any pins pushed to this\n * topic.\n *\n * @param {String} topic - The desired topic to be unsubscribed from.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful unsubscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed unsubscription attempt.\n */\nPebble.timelineUnsubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Obtain a list of topics that the user is currently subscribed to. The\n * length of the list should be checked to determine whether the user is\n * subscribed to at least one topic.\n *\n * @param {TimelineTopicsCallback} onSuccess - The developer-defined function to process the\n * retuned list of topic strings.\n * @param {Function} onFailure - The developer-defined function to gracefully\n * handle any errors in obtaining the user's subscriptions.\n */\nPebble.timelineSubscription = function(onSuccess, onFailure) { };\n\n\n/**\n * @desc Obtain an object containing information on the currently connected\n * Pebble smartwatch.\n *\n * **Note:** This function is only available when using the Pebble Time\n * smartphone app. Check out our guide on {@link /guides/communication/using-pebblekit-js Getting Watch Information}\n * for details on how to use this function.\n *\n * @returns {WatchInfo} A {@link #WatchInfo WatchInfo} object detailing the\n * currently connected Pebble watch.\n */\nPebble.getActiveWatchInfo = function() { };\n\n/**\n * @desc Returns a unique account token that is associated with the Pebble\n * account of the current user.\n *\n * **Note:** The behavior of this changed slightly in SDK 3.0. Read the\n * {@link /guides/migration/migration-guide-3/ Migration Guide} to learn the\n * details and how to adapt older tokens.\n *\n * @returns {String} A string that is guaranteed to be identical across devices\n * if the user owns several Pebble or several mobile devices. From the\n * developer's perspective, the account token of a user is identical across\n * platforms and across all the developer's watchapps. If the user is not\n * logged in, this function will return an empty string ('').\n */\n\nPebble.getAccountToken = function() { };\n\n/**\n * @desc Returns a a unique token that can be used to identify a Pebble device.\n *\n * @returns {String} A string that is is guaranteed to be identical for each\n * Pebble device for the same app across different mobile devices. The token\n * is unique to your app and cannot be used to track Pebble devices across\n * applications.\n */\nPebble.getWatchToken = function() { };\n\n\n/**\n * @desc Triggers a reload of the app glance which first clears any existing \n * slices and then adds the provided slices.\n *\n * @param {AppGlanceSlice} appGlanceSlices - {@link #AppGlanceSlice AppGlanceSlice} \n * JSON objects to add to the app glance.\n * @param {AppGlanceReloadSuccessCallback} onSuccess - The developer-defined \n * callback which is called if the reload operation succeeds.\n * @param {AppGlanceReloadFailureCallback} onFailure - The developer-defined \n * callback which is called if the reload operation fails.\n */\nPebble.appGlanceReload = function(appGlanceSlices, onSuccess, onFailure) { };\n\n/**\n * @typedef {Function} AppGlanceReloadSuccessCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload is successful.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n /**\n * @typedef {Function} AppGlanceReloadFailureCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload has failed.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n/**\n * @typedef {Function} AppMessageAckCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message.\n */\n\n/**\n * @typedef {Function} AppMessageNackCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is not acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message\n * @param {String} error - The error message\n */\n\n/**\n * @typedef {Function} EventCallback\n * @memberof Pebble\n *\n * @desc Called when an event of any type previously registered occurs. The\n * parameters are different depending on the type of event, shown in\n * brackets for each parameter listed here.\n * @param {Object} event - An object containing the event information, including:\n * * `type` - The type of event fired, from the list in the description of ``Pebble.addEventListener()``.\n * * `payload` - The dictionary sent over ``AppMessage`` consisting of\n * key-value pairs. *This field only exists for `appmessage` events.*\n * * `response` - The contents of the URL navigated to when the\n * configuration page was closed, after the anchor. This may be encoded,\n * which will require use of decodeURIComponent() before reading as an\n * object. *This field only exists for for `webviewclosed` events.*\n */\n\n/**\n * @typedef {Function} TimelineTokenCallback\n * @memberof Pebble\n *\n * @desc Called when the user's timeline token is available.\n * @param {String} token - The user's token.\n */\n\n/**\n * @typedef {Function} TimelineTopicsCallback\n * @memberof Pebble\n *\n * @desc Called when the user's list of subscriptions is available for processing by the developer.\n * @param {[String]} List of topic strings that the user is subscribed to\n */\n\n/**\n * @typedef {Object} WatchInfo\n * @memberof Pebble\n *\n * @desc Provides information about the connected Pebble smartwatch.\n *\n * @property {String} platform - The hardware platform, such as `basalt` or `emery`.\n * @property {String} model - The watch model, such as `pebble_black`\n * @property {String} language - The user's currently selected language on\n * this watch.\n * @property {Object} firmware - An object containing information about the\n * watch's firmware version, including:\n * * `major` - The major version\n * * `minor` - The minor version\n * * `patch` - The patch version\n * * `suffix` - Any additional version information, such as `beta3`\n*/\n\n/**\n * @typedef {Object} AppGlanceSlice\n * @memberof Pebble\n *\n * @desc The structure of an app glance.\n *\n * @property {String} expirationTime - Optional ISO date-time string of when \n the entry should expire and no longer be shown in the app glance.\n * @property {Object} layout - An object containing:\n * * `icon` - URI string of the icon to display in the app glance, e.g. system://images/ALARM_CLOCK.\n * * `subtitleTemplateString` - Template string that will be displayed in the subtitle of the app glance.\n*/\n" }, "params": [ @@ -3428,7 +3428,7 @@ "column": 43 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js", + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js", "code": "/**\n * @namespace Pebble\n *\n * @desc The Pebble namespace is where all of the Pebble specific methods and\n * properties exist. This class contains methods belonging to PebbleKit JS and\n * allows bi-directional communication with a C watchapp, as well as managing\n * the user's timeline subscriptions and obtaining information about their\n * watch.\n */\nvar Pebble = new Object;\n\n\n/**\n * @desc Adds a listener for Pebble JS events, such as when an ``AppMessage`` is\n * received or the configuration view is opened or closed.\n *\n * #### `event` Options\n *\n * Possible values:\n *\n * * `ready` - The watchapp has been launched and the PebbleKit JS component\n * is now ready to receive events.\n * * `appmessage` - The watch sent an ``AppMessage`` to PebbleKit JS. The\n * AppMessage ``Dictionary`` is contained in the payload property (i.e:\n * event.payload). The payload consists of key-value pairs, where the keys\n * are strings containing integers (e.g: \"0\"), or aliases for keys defined\n * in package.json (e.g: \"KEY_EXAMPLE\"). Values should be integers, strings\n * or byte arrays (arrays of characters).\n * * `showConfiguration` - The user has requested the app's configuration\n * webview to be displayed. This can occur either upon the app's initial\n * install or when the user taps 'Settings' in the 'My Pebble' view withtin\n * the phone app.\n * * `webviewclosed` - The configuration webview was closed by the user. If\n * the webview had a response, it will be contained in the response property\n * (i.e: event.response). This response can be used to feed back user\n * preferences to the watchapp.\n *\n * @param {String} event - The type of the event, from the list described above.\n * @param {EventCallback} callback - The developer defined {@link #EventCallback EventCallback}\n * to receive any events of the type specified that occur.\n*/\nPebble.addEventListener = function(event, callback) { };\n\n/**\n * @desc Remove an existing event listener previously registered with\n * ``Pebble.addEventListener()``.\n *\n * @param {String} type - The type of the event listener to be removed. See\n * ``Pebble.addEventListener()`` for a list of available types.\n * @param {Function} callback - The existing developer-defined function that was\n * previously registered.\n */\nPebble.removeEventListener = function(type, callback) { };\n\n/**\n * @desc Show a simple modal notification on the connected watch.\n *\n * @param {String} title - The title of the notification\n * @param {String} body - The main content of the notification\n */\nPebble.showSimpleNotificationOnPebble = function(title, body) { };\n\n/**\n * @desc Send an AppMessage to the app running on the watch. Messages should be\n * in the form of JSON objects containing key-value pairs. See\n * Pebble.sendAppMessage() for valid key and value data types.\n * Pebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n *\n * @returns {Number} The transaction id for this message\n *\n * @param {Object} data - A JSON object containing key-value pairs to send to\n * the watch. Values in arrays that are greater then 255 will be mod 255\n * before sending.\n * @param {AppMessageAckCallback} onSuccess - A developer-defined {@link #AppMessageAckCallback AppMessageAckCallback}\n * callback to run if the watch acknowledges (ACK) this message.\n * @param {AppMessageOnFailure} onSuccess - A developer-defined {@link #AppMessageNackCallback AppMessageNackCallback}\n * callback to run if the watch does not acknowledges (NACK) this message.\n */\nPebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n\n\n/**\n * @desc Get the user's timeline token for this app. This is a string and is\n * unique per user per app. Note: In order for timeline tokens to be\n * available, the app must be submitted to the Pebble appstore, but does not\n * need to be public. Read more in the\n * {@link /guides/pebble-timeline/timeline-js/ timeline guides}.\n *\n * @param {TimelineTokenCallback} onSuccess - A developer-defined {@link #TimelineTokenCallback TimelineTokenCallback}\n * callback to handle a successful attempt to get the timeline token.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed attempt to get the timeline token.\n */Pebble.getTimelineToken = function(onSuccess, onFailure) { };\n\n/**\n * @desc Subscribe the user to a timeline topic for your app. This can be used\n * to filter the different pins a user could receive according to their\n * preferences, as well as maintain groups of users.\n *\n * @param {String} topic - The desired topic to be subscribed to. Users will\n * receive all pins pushed to this topic.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful subscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed subscription attempt.\n */\nPebble.timelineSubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Unsubscribe the user from a timeline topic for your app. Once\n * unsubscribed, the user will no longer receive any pins pushed to this\n * topic.\n *\n * @param {String} topic - The desired topic to be unsubscribed from.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful unsubscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed unsubscription attempt.\n */\nPebble.timelineUnsubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Obtain a list of topics that the user is currently subscribed to. The\n * length of the list should be checked to determine whether the user is\n * subscribed to at least one topic.\n *\n * @param {TimelineTopicsCallback} onSuccess - The developer-defined function to process the\n * retuned list of topic strings.\n * @param {Function} onFailure - The developer-defined function to gracefully\n * handle any errors in obtaining the user's subscriptions.\n */\nPebble.timelineSubscription = function(onSuccess, onFailure) { };\n\n\n/**\n * @desc Obtain an object containing information on the currently connected\n * Pebble smartwatch.\n *\n * **Note:** This function is only available when using the Pebble Time\n * smartphone app. Check out our guide on {@link /guides/communication/using-pebblekit-js Getting Watch Information}\n * for details on how to use this function.\n *\n * @returns {WatchInfo} A {@link #WatchInfo WatchInfo} object detailing the\n * currently connected Pebble watch.\n */\nPebble.getActiveWatchInfo = function() { };\n\n/**\n * @desc Returns a unique account token that is associated with the Pebble\n * account of the current user.\n *\n * **Note:** The behavior of this changed slightly in SDK 3.0. Read the\n * {@link /guides/migration/migration-guide-3/ Migration Guide} to learn the\n * details and how to adapt older tokens.\n *\n * @returns {String} A string that is guaranteed to be identical across devices\n * if the user owns several Pebble or several mobile devices. From the\n * developer's perspective, the account token of a user is identical across\n * platforms and across all the developer's watchapps. If the user is not\n * logged in, this function will return an empty string ('').\n */\n\nPebble.getAccountToken = function() { };\n\n/**\n * @desc Returns a a unique token that can be used to identify a Pebble device.\n *\n * @returns {String} A string that is is guaranteed to be identical for each\n * Pebble device for the same app across different mobile devices. The token\n * is unique to your app and cannot be used to track Pebble devices across\n * applications.\n */\nPebble.getWatchToken = function() { };\n\n\n/**\n * @desc Triggers a reload of the app glance which first clears any existing \n * slices and then adds the provided slices.\n *\n * @param {AppGlanceSlice} appGlanceSlices - {@link #AppGlanceSlice AppGlanceSlice} \n * JSON objects to add to the app glance.\n * @param {AppGlanceReloadSuccessCallback} onSuccess - The developer-defined \n * callback which is called if the reload operation succeeds.\n * @param {AppGlanceReloadFailureCallback} onFailure - The developer-defined \n * callback which is called if the reload operation fails.\n */\nPebble.appGlanceReload = function(appGlanceSlices, onSuccess, onFailure) { };\n\n/**\n * @typedef {Function} AppGlanceReloadSuccessCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload is successful.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n /**\n * @typedef {Function} AppGlanceReloadFailureCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload has failed.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n/**\n * @typedef {Function} AppMessageAckCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message.\n */\n\n/**\n * @typedef {Function} AppMessageNackCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is not acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message\n * @param {String} error - The error message\n */\n\n/**\n * @typedef {Function} EventCallback\n * @memberof Pebble\n *\n * @desc Called when an event of any type previously registered occurs. The\n * parameters are different depending on the type of event, shown in\n * brackets for each parameter listed here.\n * @param {Object} event - An object containing the event information, including:\n * * `type` - The type of event fired, from the list in the description of ``Pebble.addEventListener()``.\n * * `payload` - The dictionary sent over ``AppMessage`` consisting of\n * key-value pairs. *This field only exists for `appmessage` events.*\n * * `response` - The contents of the URL navigated to when the\n * configuration page was closed, after the anchor. This may be encoded,\n * which will require use of decodeURIComponent() before reading as an\n * object. *This field only exists for for `webviewclosed` events.*\n */\n\n/**\n * @typedef {Function} TimelineTokenCallback\n * @memberof Pebble\n *\n * @desc Called when the user's timeline token is available.\n * @param {String} token - The user's token.\n */\n\n/**\n * @typedef {Function} TimelineTopicsCallback\n * @memberof Pebble\n *\n * @desc Called when the user's list of subscriptions is available for processing by the developer.\n * @param {[String]} List of topic strings that the user is subscribed to\n */\n\n/**\n * @typedef {Object} WatchInfo\n * @memberof Pebble\n *\n * @desc Provides information about the connected Pebble smartwatch.\n *\n * @property {String} platform - The hardware platform, such as `basalt` or `emery`.\n * @property {String} model - The watch model, such as `pebble_black`\n * @property {String} language - The user's currently selected language on\n * this watch.\n * @property {Object} firmware - An object containing information about the\n * watch's firmware version, including:\n * * `major` - The major version\n * * `minor` - The minor version\n * * `patch` - The patch version\n * * `suffix` - Any additional version information, such as `beta3`\n*/\n\n/**\n * @typedef {Object} AppGlanceSlice\n * @memberof Pebble\n *\n * @desc The structure of an app glance.\n *\n * @property {String} expirationTime - Optional ISO date-time string of when \n the entry should expire and no longer be shown in the app glance.\n * @property {Object} layout - An object containing:\n * * `icon` - URI string of the icon to display in the app glance, e.g. system://images/ALARM_CLOCK.\n * * `subtitleTemplateString` - Template string that will be displayed in the subtitle of the app glance.\n*/\n" }, "returns": [ @@ -3673,7 +3673,7 @@ "column": 40 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js", + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js", "code": "/**\n * @namespace Pebble\n *\n * @desc The Pebble namespace is where all of the Pebble specific methods and\n * properties exist. This class contains methods belonging to PebbleKit JS and\n * allows bi-directional communication with a C watchapp, as well as managing\n * the user's timeline subscriptions and obtaining information about their\n * watch.\n */\nvar Pebble = new Object;\n\n\n/**\n * @desc Adds a listener for Pebble JS events, such as when an ``AppMessage`` is\n * received or the configuration view is opened or closed.\n *\n * #### `event` Options\n *\n * Possible values:\n *\n * * `ready` - The watchapp has been launched and the PebbleKit JS component\n * is now ready to receive events.\n * * `appmessage` - The watch sent an ``AppMessage`` to PebbleKit JS. The\n * AppMessage ``Dictionary`` is contained in the payload property (i.e:\n * event.payload). The payload consists of key-value pairs, where the keys\n * are strings containing integers (e.g: \"0\"), or aliases for keys defined\n * in package.json (e.g: \"KEY_EXAMPLE\"). Values should be integers, strings\n * or byte arrays (arrays of characters).\n * * `showConfiguration` - The user has requested the app's configuration\n * webview to be displayed. This can occur either upon the app's initial\n * install or when the user taps 'Settings' in the 'My Pebble' view withtin\n * the phone app.\n * * `webviewclosed` - The configuration webview was closed by the user. If\n * the webview had a response, it will be contained in the response property\n * (i.e: event.response). This response can be used to feed back user\n * preferences to the watchapp.\n *\n * @param {String} event - The type of the event, from the list described above.\n * @param {EventCallback} callback - The developer defined {@link #EventCallback EventCallback}\n * to receive any events of the type specified that occur.\n*/\nPebble.addEventListener = function(event, callback) { };\n\n/**\n * @desc Remove an existing event listener previously registered with\n * ``Pebble.addEventListener()``.\n *\n * @param {String} type - The type of the event listener to be removed. See\n * ``Pebble.addEventListener()`` for a list of available types.\n * @param {Function} callback - The existing developer-defined function that was\n * previously registered.\n */\nPebble.removeEventListener = function(type, callback) { };\n\n/**\n * @desc Show a simple modal notification on the connected watch.\n *\n * @param {String} title - The title of the notification\n * @param {String} body - The main content of the notification\n */\nPebble.showSimpleNotificationOnPebble = function(title, body) { };\n\n/**\n * @desc Send an AppMessage to the app running on the watch. Messages should be\n * in the form of JSON objects containing key-value pairs. See\n * Pebble.sendAppMessage() for valid key and value data types.\n * Pebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n *\n * @returns {Number} The transaction id for this message\n *\n * @param {Object} data - A JSON object containing key-value pairs to send to\n * the watch. Values in arrays that are greater then 255 will be mod 255\n * before sending.\n * @param {AppMessageAckCallback} onSuccess - A developer-defined {@link #AppMessageAckCallback AppMessageAckCallback}\n * callback to run if the watch acknowledges (ACK) this message.\n * @param {AppMessageOnFailure} onSuccess - A developer-defined {@link #AppMessageNackCallback AppMessageNackCallback}\n * callback to run if the watch does not acknowledges (NACK) this message.\n */\nPebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n\n\n/**\n * @desc Get the user's timeline token for this app. This is a string and is\n * unique per user per app. Note: In order for timeline tokens to be\n * available, the app must be submitted to the Pebble appstore, but does not\n * need to be public. Read more in the\n * {@link /guides/pebble-timeline/timeline-js/ timeline guides}.\n *\n * @param {TimelineTokenCallback} onSuccess - A developer-defined {@link #TimelineTokenCallback TimelineTokenCallback}\n * callback to handle a successful attempt to get the timeline token.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed attempt to get the timeline token.\n */Pebble.getTimelineToken = function(onSuccess, onFailure) { };\n\n/**\n * @desc Subscribe the user to a timeline topic for your app. This can be used\n * to filter the different pins a user could receive according to their\n * preferences, as well as maintain groups of users.\n *\n * @param {String} topic - The desired topic to be subscribed to. Users will\n * receive all pins pushed to this topic.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful subscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed subscription attempt.\n */\nPebble.timelineSubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Unsubscribe the user from a timeline topic for your app. Once\n * unsubscribed, the user will no longer receive any pins pushed to this\n * topic.\n *\n * @param {String} topic - The desired topic to be unsubscribed from.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful unsubscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed unsubscription attempt.\n */\nPebble.timelineUnsubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Obtain a list of topics that the user is currently subscribed to. The\n * length of the list should be checked to determine whether the user is\n * subscribed to at least one topic.\n *\n * @param {TimelineTopicsCallback} onSuccess - The developer-defined function to process the\n * retuned list of topic strings.\n * @param {Function} onFailure - The developer-defined function to gracefully\n * handle any errors in obtaining the user's subscriptions.\n */\nPebble.timelineSubscription = function(onSuccess, onFailure) { };\n\n\n/**\n * @desc Obtain an object containing information on the currently connected\n * Pebble smartwatch.\n *\n * **Note:** This function is only available when using the Pebble Time\n * smartphone app. Check out our guide on {@link /guides/communication/using-pebblekit-js Getting Watch Information}\n * for details on how to use this function.\n *\n * @returns {WatchInfo} A {@link #WatchInfo WatchInfo} object detailing the\n * currently connected Pebble watch.\n */\nPebble.getActiveWatchInfo = function() { };\n\n/**\n * @desc Returns a unique account token that is associated with the Pebble\n * account of the current user.\n *\n * **Note:** The behavior of this changed slightly in SDK 3.0. Read the\n * {@link /guides/migration/migration-guide-3/ Migration Guide} to learn the\n * details and how to adapt older tokens.\n *\n * @returns {String} A string that is guaranteed to be identical across devices\n * if the user owns several Pebble or several mobile devices. From the\n * developer's perspective, the account token of a user is identical across\n * platforms and across all the developer's watchapps. If the user is not\n * logged in, this function will return an empty string ('').\n */\n\nPebble.getAccountToken = function() { };\n\n/**\n * @desc Returns a a unique token that can be used to identify a Pebble device.\n *\n * @returns {String} A string that is is guaranteed to be identical for each\n * Pebble device for the same app across different mobile devices. The token\n * is unique to your app and cannot be used to track Pebble devices across\n * applications.\n */\nPebble.getWatchToken = function() { };\n\n\n/**\n * @desc Triggers a reload of the app glance which first clears any existing \n * slices and then adds the provided slices.\n *\n * @param {AppGlanceSlice} appGlanceSlices - {@link #AppGlanceSlice AppGlanceSlice} \n * JSON objects to add to the app glance.\n * @param {AppGlanceReloadSuccessCallback} onSuccess - The developer-defined \n * callback which is called if the reload operation succeeds.\n * @param {AppGlanceReloadFailureCallback} onFailure - The developer-defined \n * callback which is called if the reload operation fails.\n */\nPebble.appGlanceReload = function(appGlanceSlices, onSuccess, onFailure) { };\n\n/**\n * @typedef {Function} AppGlanceReloadSuccessCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload is successful.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n /**\n * @typedef {Function} AppGlanceReloadFailureCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload has failed.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n/**\n * @typedef {Function} AppMessageAckCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message.\n */\n\n/**\n * @typedef {Function} AppMessageNackCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is not acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message\n * @param {String} error - The error message\n */\n\n/**\n * @typedef {Function} EventCallback\n * @memberof Pebble\n *\n * @desc Called when an event of any type previously registered occurs. The\n * parameters are different depending on the type of event, shown in\n * brackets for each parameter listed here.\n * @param {Object} event - An object containing the event information, including:\n * * `type` - The type of event fired, from the list in the description of ``Pebble.addEventListener()``.\n * * `payload` - The dictionary sent over ``AppMessage`` consisting of\n * key-value pairs. *This field only exists for `appmessage` events.*\n * * `response` - The contents of the URL navigated to when the\n * configuration page was closed, after the anchor. This may be encoded,\n * which will require use of decodeURIComponent() before reading as an\n * object. *This field only exists for for `webviewclosed` events.*\n */\n\n/**\n * @typedef {Function} TimelineTokenCallback\n * @memberof Pebble\n *\n * @desc Called when the user's timeline token is available.\n * @param {String} token - The user's token.\n */\n\n/**\n * @typedef {Function} TimelineTopicsCallback\n * @memberof Pebble\n *\n * @desc Called when the user's list of subscriptions is available for processing by the developer.\n * @param {[String]} List of topic strings that the user is subscribed to\n */\n\n/**\n * @typedef {Object} WatchInfo\n * @memberof Pebble\n *\n * @desc Provides information about the connected Pebble smartwatch.\n *\n * @property {String} platform - The hardware platform, such as `basalt` or `emery`.\n * @property {String} model - The watch model, such as `pebble_black`\n * @property {String} language - The user's currently selected language on\n * this watch.\n * @property {Object} firmware - An object containing information about the\n * watch's firmware version, including:\n * * `major` - The major version\n * * `minor` - The minor version\n * * `patch` - The patch version\n * * `suffix` - Any additional version information, such as `beta3`\n*/\n\n/**\n * @typedef {Object} AppGlanceSlice\n * @memberof Pebble\n *\n * @desc The structure of an app glance.\n *\n * @property {String} expirationTime - Optional ISO date-time string of when \n the entry should expire and no longer be shown in the app glance.\n * @property {Object} layout - An object containing:\n * * `icon` - URI string of the icon to display in the app glance, e.g. system://images/ALARM_CLOCK.\n * * `subtitleTemplateString` - Template string that will be displayed in the subtitle of the app glance.\n*/\n" }, "returns": [ @@ -3857,7 +3857,7 @@ "column": 38 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js", + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js", "code": "/**\n * @namespace Pebble\n *\n * @desc The Pebble namespace is where all of the Pebble specific methods and\n * properties exist. This class contains methods belonging to PebbleKit JS and\n * allows bi-directional communication with a C watchapp, as well as managing\n * the user's timeline subscriptions and obtaining information about their\n * watch.\n */\nvar Pebble = new Object;\n\n\n/**\n * @desc Adds a listener for Pebble JS events, such as when an ``AppMessage`` is\n * received or the configuration view is opened or closed.\n *\n * #### `event` Options\n *\n * Possible values:\n *\n * * `ready` - The watchapp has been launched and the PebbleKit JS component\n * is now ready to receive events.\n * * `appmessage` - The watch sent an ``AppMessage`` to PebbleKit JS. The\n * AppMessage ``Dictionary`` is contained in the payload property (i.e:\n * event.payload). The payload consists of key-value pairs, where the keys\n * are strings containing integers (e.g: \"0\"), or aliases for keys defined\n * in package.json (e.g: \"KEY_EXAMPLE\"). Values should be integers, strings\n * or byte arrays (arrays of characters).\n * * `showConfiguration` - The user has requested the app's configuration\n * webview to be displayed. This can occur either upon the app's initial\n * install or when the user taps 'Settings' in the 'My Pebble' view withtin\n * the phone app.\n * * `webviewclosed` - The configuration webview was closed by the user. If\n * the webview had a response, it will be contained in the response property\n * (i.e: event.response). This response can be used to feed back user\n * preferences to the watchapp.\n *\n * @param {String} event - The type of the event, from the list described above.\n * @param {EventCallback} callback - The developer defined {@link #EventCallback EventCallback}\n * to receive any events of the type specified that occur.\n*/\nPebble.addEventListener = function(event, callback) { };\n\n/**\n * @desc Remove an existing event listener previously registered with\n * ``Pebble.addEventListener()``.\n *\n * @param {String} type - The type of the event listener to be removed. See\n * ``Pebble.addEventListener()`` for a list of available types.\n * @param {Function} callback - The existing developer-defined function that was\n * previously registered.\n */\nPebble.removeEventListener = function(type, callback) { };\n\n/**\n * @desc Show a simple modal notification on the connected watch.\n *\n * @param {String} title - The title of the notification\n * @param {String} body - The main content of the notification\n */\nPebble.showSimpleNotificationOnPebble = function(title, body) { };\n\n/**\n * @desc Send an AppMessage to the app running on the watch. Messages should be\n * in the form of JSON objects containing key-value pairs. See\n * Pebble.sendAppMessage() for valid key and value data types.\n * Pebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n *\n * @returns {Number} The transaction id for this message\n *\n * @param {Object} data - A JSON object containing key-value pairs to send to\n * the watch. Values in arrays that are greater then 255 will be mod 255\n * before sending.\n * @param {AppMessageAckCallback} onSuccess - A developer-defined {@link #AppMessageAckCallback AppMessageAckCallback}\n * callback to run if the watch acknowledges (ACK) this message.\n * @param {AppMessageOnFailure} onSuccess - A developer-defined {@link #AppMessageNackCallback AppMessageNackCallback}\n * callback to run if the watch does not acknowledges (NACK) this message.\n */\nPebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n\n\n/**\n * @desc Get the user's timeline token for this app. This is a string and is\n * unique per user per app. Note: In order for timeline tokens to be\n * available, the app must be submitted to the Pebble appstore, but does not\n * need to be public. Read more in the\n * {@link /guides/pebble-timeline/timeline-js/ timeline guides}.\n *\n * @param {TimelineTokenCallback} onSuccess - A developer-defined {@link #TimelineTokenCallback TimelineTokenCallback}\n * callback to handle a successful attempt to get the timeline token.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed attempt to get the timeline token.\n */Pebble.getTimelineToken = function(onSuccess, onFailure) { };\n\n/**\n * @desc Subscribe the user to a timeline topic for your app. This can be used\n * to filter the different pins a user could receive according to their\n * preferences, as well as maintain groups of users.\n *\n * @param {String} topic - The desired topic to be subscribed to. Users will\n * receive all pins pushed to this topic.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful subscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed subscription attempt.\n */\nPebble.timelineSubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Unsubscribe the user from a timeline topic for your app. Once\n * unsubscribed, the user will no longer receive any pins pushed to this\n * topic.\n *\n * @param {String} topic - The desired topic to be unsubscribed from.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful unsubscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed unsubscription attempt.\n */\nPebble.timelineUnsubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Obtain a list of topics that the user is currently subscribed to. The\n * length of the list should be checked to determine whether the user is\n * subscribed to at least one topic.\n *\n * @param {TimelineTopicsCallback} onSuccess - The developer-defined function to process the\n * retuned list of topic strings.\n * @param {Function} onFailure - The developer-defined function to gracefully\n * handle any errors in obtaining the user's subscriptions.\n */\nPebble.timelineSubscription = function(onSuccess, onFailure) { };\n\n\n/**\n * @desc Obtain an object containing information on the currently connected\n * Pebble smartwatch.\n *\n * **Note:** This function is only available when using the Pebble Time\n * smartphone app. Check out our guide on {@link /guides/communication/using-pebblekit-js Getting Watch Information}\n * for details on how to use this function.\n *\n * @returns {WatchInfo} A {@link #WatchInfo WatchInfo} object detailing the\n * currently connected Pebble watch.\n */\nPebble.getActiveWatchInfo = function() { };\n\n/**\n * @desc Returns a unique account token that is associated with the Pebble\n * account of the current user.\n *\n * **Note:** The behavior of this changed slightly in SDK 3.0. Read the\n * {@link /guides/migration/migration-guide-3/ Migration Guide} to learn the\n * details and how to adapt older tokens.\n *\n * @returns {String} A string that is guaranteed to be identical across devices\n * if the user owns several Pebble or several mobile devices. From the\n * developer's perspective, the account token of a user is identical across\n * platforms and across all the developer's watchapps. If the user is not\n * logged in, this function will return an empty string ('').\n */\n\nPebble.getAccountToken = function() { };\n\n/**\n * @desc Returns a a unique token that can be used to identify a Pebble device.\n *\n * @returns {String} A string that is is guaranteed to be identical for each\n * Pebble device for the same app across different mobile devices. The token\n * is unique to your app and cannot be used to track Pebble devices across\n * applications.\n */\nPebble.getWatchToken = function() { };\n\n\n/**\n * @desc Triggers a reload of the app glance which first clears any existing \n * slices and then adds the provided slices.\n *\n * @param {AppGlanceSlice} appGlanceSlices - {@link #AppGlanceSlice AppGlanceSlice} \n * JSON objects to add to the app glance.\n * @param {AppGlanceReloadSuccessCallback} onSuccess - The developer-defined \n * callback which is called if the reload operation succeeds.\n * @param {AppGlanceReloadFailureCallback} onFailure - The developer-defined \n * callback which is called if the reload operation fails.\n */\nPebble.appGlanceReload = function(appGlanceSlices, onSuccess, onFailure) { };\n\n/**\n * @typedef {Function} AppGlanceReloadSuccessCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload is successful.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n /**\n * @typedef {Function} AppGlanceReloadFailureCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload has failed.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n/**\n * @typedef {Function} AppMessageAckCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message.\n */\n\n/**\n * @typedef {Function} AppMessageNackCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is not acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message\n * @param {String} error - The error message\n */\n\n/**\n * @typedef {Function} EventCallback\n * @memberof Pebble\n *\n * @desc Called when an event of any type previously registered occurs. The\n * parameters are different depending on the type of event, shown in\n * brackets for each parameter listed here.\n * @param {Object} event - An object containing the event information, including:\n * * `type` - The type of event fired, from the list in the description of ``Pebble.addEventListener()``.\n * * `payload` - The dictionary sent over ``AppMessage`` consisting of\n * key-value pairs. *This field only exists for `appmessage` events.*\n * * `response` - The contents of the URL navigated to when the\n * configuration page was closed, after the anchor. This may be encoded,\n * which will require use of decodeURIComponent() before reading as an\n * object. *This field only exists for for `webviewclosed` events.*\n */\n\n/**\n * @typedef {Function} TimelineTokenCallback\n * @memberof Pebble\n *\n * @desc Called when the user's timeline token is available.\n * @param {String} token - The user's token.\n */\n\n/**\n * @typedef {Function} TimelineTopicsCallback\n * @memberof Pebble\n *\n * @desc Called when the user's list of subscriptions is available for processing by the developer.\n * @param {[String]} List of topic strings that the user is subscribed to\n */\n\n/**\n * @typedef {Object} WatchInfo\n * @memberof Pebble\n *\n * @desc Provides information about the connected Pebble smartwatch.\n *\n * @property {String} platform - The hardware platform, such as `basalt` or `emery`.\n * @property {String} model - The watch model, such as `pebble_black`\n * @property {String} language - The user's currently selected language on\n * this watch.\n * @property {Object} firmware - An object containing information about the\n * watch's firmware version, including:\n * * `major` - The major version\n * * `minor` - The minor version\n * * `patch` - The patch version\n * * `suffix` - Any additional version information, such as `beta3`\n*/\n\n/**\n * @typedef {Object} AppGlanceSlice\n * @memberof Pebble\n *\n * @desc The structure of an app glance.\n *\n * @property {String} expirationTime - Optional ISO date-time string of when \n the entry should expire and no longer be shown in the app glance.\n * @property {Object} layout - An object containing:\n * * `icon` - URI string of the icon to display in the app glance, e.g. system://images/ALARM_CLOCK.\n * * `subtitleTemplateString` - Template string that will be displayed in the subtitle of the app glance.\n*/\n" }, "returns": [ @@ -4064,7 +4064,7 @@ "column": 77 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js", + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js", "code": "/**\n * @namespace Pebble\n *\n * @desc The Pebble namespace is where all of the Pebble specific methods and\n * properties exist. This class contains methods belonging to PebbleKit JS and\n * allows bi-directional communication with a C watchapp, as well as managing\n * the user's timeline subscriptions and obtaining information about their\n * watch.\n */\nvar Pebble = new Object;\n\n\n/**\n * @desc Adds a listener for Pebble JS events, such as when an ``AppMessage`` is\n * received or the configuration view is opened or closed.\n *\n * #### `event` Options\n *\n * Possible values:\n *\n * * `ready` - The watchapp has been launched and the PebbleKit JS component\n * is now ready to receive events.\n * * `appmessage` - The watch sent an ``AppMessage`` to PebbleKit JS. The\n * AppMessage ``Dictionary`` is contained in the payload property (i.e:\n * event.payload). The payload consists of key-value pairs, where the keys\n * are strings containing integers (e.g: \"0\"), or aliases for keys defined\n * in package.json (e.g: \"KEY_EXAMPLE\"). Values should be integers, strings\n * or byte arrays (arrays of characters).\n * * `showConfiguration` - The user has requested the app's configuration\n * webview to be displayed. This can occur either upon the app's initial\n * install or when the user taps 'Settings' in the 'My Pebble' view withtin\n * the phone app.\n * * `webviewclosed` - The configuration webview was closed by the user. If\n * the webview had a response, it will be contained in the response property\n * (i.e: event.response). This response can be used to feed back user\n * preferences to the watchapp.\n *\n * @param {String} event - The type of the event, from the list described above.\n * @param {EventCallback} callback - The developer defined {@link #EventCallback EventCallback}\n * to receive any events of the type specified that occur.\n*/\nPebble.addEventListener = function(event, callback) { };\n\n/**\n * @desc Remove an existing event listener previously registered with\n * ``Pebble.addEventListener()``.\n *\n * @param {String} type - The type of the event listener to be removed. See\n * ``Pebble.addEventListener()`` for a list of available types.\n * @param {Function} callback - The existing developer-defined function that was\n * previously registered.\n */\nPebble.removeEventListener = function(type, callback) { };\n\n/**\n * @desc Show a simple modal notification on the connected watch.\n *\n * @param {String} title - The title of the notification\n * @param {String} body - The main content of the notification\n */\nPebble.showSimpleNotificationOnPebble = function(title, body) { };\n\n/**\n * @desc Send an AppMessage to the app running on the watch. Messages should be\n * in the form of JSON objects containing key-value pairs. See\n * Pebble.sendAppMessage() for valid key and value data types.\n * Pebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n *\n * @returns {Number} The transaction id for this message\n *\n * @param {Object} data - A JSON object containing key-value pairs to send to\n * the watch. Values in arrays that are greater then 255 will be mod 255\n * before sending.\n * @param {AppMessageAckCallback} onSuccess - A developer-defined {@link #AppMessageAckCallback AppMessageAckCallback}\n * callback to run if the watch acknowledges (ACK) this message.\n * @param {AppMessageOnFailure} onSuccess - A developer-defined {@link #AppMessageNackCallback AppMessageNackCallback}\n * callback to run if the watch does not acknowledges (NACK) this message.\n */\nPebble.sendAppMessage = function(data, onSuccess, onFailure) { };\n\n\n/**\n * @desc Get the user's timeline token for this app. This is a string and is\n * unique per user per app. Note: In order for timeline tokens to be\n * available, the app must be submitted to the Pebble appstore, but does not\n * need to be public. Read more in the\n * {@link /guides/pebble-timeline/timeline-js/ timeline guides}.\n *\n * @param {TimelineTokenCallback} onSuccess - A developer-defined {@link #TimelineTokenCallback TimelineTokenCallback}\n * callback to handle a successful attempt to get the timeline token.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed attempt to get the timeline token.\n */Pebble.getTimelineToken = function(onSuccess, onFailure) { };\n\n/**\n * @desc Subscribe the user to a timeline topic for your app. This can be used\n * to filter the different pins a user could receive according to their\n * preferences, as well as maintain groups of users.\n *\n * @param {String} topic - The desired topic to be subscribed to. Users will\n * receive all pins pushed to this topic.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful subscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed subscription attempt.\n */\nPebble.timelineSubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Unsubscribe the user from a timeline topic for your app. Once\n * unsubscribed, the user will no longer receive any pins pushed to this\n * topic.\n *\n * @param {String} topic - The desired topic to be unsubscribed from.\n * @param {Function} onSuccess - A developer-defined callback to handle a\n * successful unsubscription attempt.\n * @param {Function} onFailure - A developer-defined callback to handle a\n * failed unsubscription attempt.\n */\nPebble.timelineUnsubscribe = function(topic, onSuccess, onFailure) { };\n\n/**\n * @desc Obtain a list of topics that the user is currently subscribed to. The\n * length of the list should be checked to determine whether the user is\n * subscribed to at least one topic.\n *\n * @param {TimelineTopicsCallback} onSuccess - The developer-defined function to process the\n * retuned list of topic strings.\n * @param {Function} onFailure - The developer-defined function to gracefully\n * handle any errors in obtaining the user's subscriptions.\n */\nPebble.timelineSubscription = function(onSuccess, onFailure) { };\n\n\n/**\n * @desc Obtain an object containing information on the currently connected\n * Pebble smartwatch.\n *\n * **Note:** This function is only available when using the Pebble Time\n * smartphone app. Check out our guide on {@link /guides/communication/using-pebblekit-js Getting Watch Information}\n * for details on how to use this function.\n *\n * @returns {WatchInfo} A {@link #WatchInfo WatchInfo} object detailing the\n * currently connected Pebble watch.\n */\nPebble.getActiveWatchInfo = function() { };\n\n/**\n * @desc Returns a unique account token that is associated with the Pebble\n * account of the current user.\n *\n * **Note:** The behavior of this changed slightly in SDK 3.0. Read the\n * {@link /guides/migration/migration-guide-3/ Migration Guide} to learn the\n * details and how to adapt older tokens.\n *\n * @returns {String} A string that is guaranteed to be identical across devices\n * if the user owns several Pebble or several mobile devices. From the\n * developer's perspective, the account token of a user is identical across\n * platforms and across all the developer's watchapps. If the user is not\n * logged in, this function will return an empty string ('').\n */\n\nPebble.getAccountToken = function() { };\n\n/**\n * @desc Returns a a unique token that can be used to identify a Pebble device.\n *\n * @returns {String} A string that is is guaranteed to be identical for each\n * Pebble device for the same app across different mobile devices. The token\n * is unique to your app and cannot be used to track Pebble devices across\n * applications.\n */\nPebble.getWatchToken = function() { };\n\n\n/**\n * @desc Triggers a reload of the app glance which first clears any existing \n * slices and then adds the provided slices.\n *\n * @param {AppGlanceSlice} appGlanceSlices - {@link #AppGlanceSlice AppGlanceSlice} \n * JSON objects to add to the app glance.\n * @param {AppGlanceReloadSuccessCallback} onSuccess - The developer-defined \n * callback which is called if the reload operation succeeds.\n * @param {AppGlanceReloadFailureCallback} onFailure - The developer-defined \n * callback which is called if the reload operation fails.\n */\nPebble.appGlanceReload = function(appGlanceSlices, onSuccess, onFailure) { };\n\n/**\n * @typedef {Function} AppGlanceReloadSuccessCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload is successful.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n /**\n * @typedef {Function} AppGlanceReloadFailureCallback\n * @memberof Pebble\n *\n * @desc Called when AppGlanceReload has failed.\n * @param {AppGlanceSlice} AppGlanceSlices - An {@link #AppGlanceSlice AppGlanceSlice} object \n * containing the app glance slices.\n */\n\n/**\n * @typedef {Function} AppMessageAckCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message.\n */\n\n/**\n * @typedef {Function} AppMessageNackCallback\n * @memberof Pebble\n *\n * @desc Called when an AppMessage is not acknowledged by the watch.\n * @param {Object} data - An object containing the callback data. This contains\n * the `transactionId` which is the transaction ID of the message\n * @param {String} error - The error message\n */\n\n/**\n * @typedef {Function} EventCallback\n * @memberof Pebble\n *\n * @desc Called when an event of any type previously registered occurs. The\n * parameters are different depending on the type of event, shown in\n * brackets for each parameter listed here.\n * @param {Object} event - An object containing the event information, including:\n * * `type` - The type of event fired, from the list in the description of ``Pebble.addEventListener()``.\n * * `payload` - The dictionary sent over ``AppMessage`` consisting of\n * key-value pairs. *This field only exists for `appmessage` events.*\n * * `response` - The contents of the URL navigated to when the\n * configuration page was closed, after the anchor. This may be encoded,\n * which will require use of decodeURIComponent() before reading as an\n * object. *This field only exists for for `webviewclosed` events.*\n */\n\n/**\n * @typedef {Function} TimelineTokenCallback\n * @memberof Pebble\n *\n * @desc Called when the user's timeline token is available.\n * @param {String} token - The user's token.\n */\n\n/**\n * @typedef {Function} TimelineTopicsCallback\n * @memberof Pebble\n *\n * @desc Called when the user's list of subscriptions is available for processing by the developer.\n * @param {[String]} List of topic strings that the user is subscribed to\n */\n\n/**\n * @typedef {Object} WatchInfo\n * @memberof Pebble\n *\n * @desc Provides information about the connected Pebble smartwatch.\n *\n * @property {String} platform - The hardware platform, such as `basalt` or `emery`.\n * @property {String} model - The watch model, such as `pebble_black`\n * @property {String} language - The user's currently selected language on\n * this watch.\n * @property {Object} firmware - An object containing information about the\n * watch's firmware version, including:\n * * `major` - The major version\n * * `minor` - The minor version\n * * `patch` - The patch version\n * * `suffix` - Any additional version information, such as `beta3`\n*/\n\n/**\n * @typedef {Object} AppGlanceSlice\n * @memberof Pebble\n *\n * @desc The structure of an app glance.\n *\n * @property {String} expirationTime - Optional ISO date-time string of when \n the entry should expire and no longer be shown in the app glance.\n * @property {Object} layout - An object containing:\n * * `icon` - URI string of the icon to display in the app glance, e.g. system://images/ALARM_CLOCK.\n * * `subtitleTemplateString` - Template string that will be displayed in the subtitle of the app glance.\n*/\n" }, "params": [ @@ -4413,7 +4413,7 @@ "column": 77 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "AppGlanceReloadSuccessCallback", @@ -4652,7 +4652,7 @@ "column": 77 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "AppGlanceReloadFailureCallback", @@ -4891,7 +4891,7 @@ "column": 77 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "AppMessageAckCallback", @@ -5132,7 +5132,7 @@ "column": 77 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "AppMessageNackCallback", @@ -5429,7 +5429,7 @@ "column": 77 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "EventCallback", @@ -6090,7 +6090,7 @@ "column": 77 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "TimelineTokenCallback", @@ -6288,7 +6288,7 @@ "column": 77 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "TimelineTopicsCallback", @@ -6516,7 +6516,7 @@ "column": 77 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "WatchInfo", @@ -7322,7 +7322,7 @@ "column": 77 } }, - "file": "/Users/orviwan/Pebble/developer.getpebble.com/js-docs/pkjs/Pebble.js" + "file": "/Users/orviwan/Pebble/developer.rebble.io/js-docs/pkjs/Pebble.js" }, "kind": "typedef", "name": "AppGlanceSlice",