Permalink
Browse files

Updated BBM sample.

  • Loading branch information...
1 parent 4d9babb commit 7e58e43d6b9c54cf14fc45dc21cd6bd8e5c634e1 Erik Oros committed Dec 7, 2012
Showing with 14,767 additions and 219 deletions.
  1. +78 −9 bbm/LICENSE
  2. +14 −3 bbm/README.md
  3. +12 −25 bbm/config.xml
  4. +5,389 −0 bbm/css/bbui-0.9.5.css
  5. BIN bbm/img/Large/White/icon_005.png
  6. BIN bbm/img/Large/White/icon_041.png
  7. BIN bbm/img/Large/White/icon_048.png
  8. BIN bbm/img/Large/White/icon_086.png
  9. BIN bbm/img/Large/White/icon_099.png
  10. BIN bbm/img/Large/White/icon_111.png
  11. BIN bbm/img/Large/White/icon_127.png
  12. BIN bbm/img/Large/White/icon_159.png
  13. BIN bbm/img/Large/White/icon_180.png
  14. BIN bbm/img/Large/White/icon_185.png
  15. BIN bbm/img/Large/White/icon_186.png
  16. BIN bbm/img/Large/White/icon_191.png
  17. BIN bbm/img/Large/White/icon_194.png
  18. BIN bbm/img/Large/White/icon_202.png
  19. BIN bbm/img/Large/White/icon_203.png
  20. BIN bbm/img/Large/White/icon_209.png
  21. BIN bbm/img/Large/White/icon_212.png
  22. BIN bbm/img/Large/White/icon_235.png
  23. BIN bbm/img/Large/White/icon_242.png
  24. BIN bbm/img/Large/White/icon_269.png
  25. BIN bbm/img/Large/White/icon_273.png
  26. BIN bbm/img/Large/White/icon_280.png
  27. BIN bbm/img/Large/White/icon_283.png
  28. BIN bbm/img/Large/White/icon_292.png
  29. BIN bbm/img/Medium/White/icon_005.png
  30. BIN bbm/img/Medium/White/icon_041.png
  31. BIN bbm/img/Medium/White/icon_048.png
  32. BIN bbm/img/Medium/White/icon_086.png
  33. BIN bbm/img/Medium/White/icon_099.png
  34. BIN bbm/img/Medium/White/icon_111.png
  35. BIN bbm/img/Medium/White/icon_127.png
  36. BIN bbm/img/Medium/White/icon_159.png
  37. BIN bbm/img/Medium/White/icon_180.png
  38. BIN bbm/img/Medium/White/icon_185.png
  39. BIN bbm/img/Medium/White/icon_186.png
  40. BIN bbm/img/Medium/White/icon_191.png
  41. BIN bbm/img/Medium/White/icon_194.png
  42. BIN bbm/img/Medium/White/icon_202.png
  43. BIN bbm/img/Medium/White/icon_203.png
  44. BIN bbm/img/Medium/White/icon_209.png
  45. BIN bbm/img/Medium/White/icon_212.png
  46. BIN bbm/img/Medium/White/icon_235.png
  47. BIN bbm/img/Medium/White/icon_242.png
  48. BIN bbm/img/Medium/White/icon_269.png
  49. BIN bbm/img/Medium/White/icon_273.png
  50. BIN bbm/img/Medium/White/icon_280.png
  51. BIN bbm/img/Medium/White/icon_283.png
  52. BIN bbm/img/Medium/White/icon_292.png
  53. +6 −0 bbm/img/README.md
  54. BIN bbm/img/Small/White/icon_005.png
  55. BIN bbm/img/Small/White/icon_041.png
  56. BIN bbm/img/Small/White/icon_048.png
  57. BIN bbm/img/Small/White/icon_086.png
  58. BIN bbm/img/Small/White/icon_099.png
  59. BIN bbm/img/Small/White/icon_111.png
  60. BIN bbm/img/Small/White/icon_127.png
  61. BIN bbm/img/Small/White/icon_159.png
  62. BIN bbm/img/Small/White/icon_180.png
  63. BIN bbm/img/Small/White/icon_185.png
  64. BIN bbm/img/Small/White/icon_186.png
  65. BIN bbm/img/Small/White/icon_191.png
  66. BIN bbm/img/Small/White/icon_194.png
  67. BIN bbm/img/Small/White/icon_202.png
  68. BIN bbm/img/Small/White/icon_203.png
  69. BIN bbm/img/Small/White/icon_209.png
  70. BIN bbm/img/Small/White/icon_212.png
  71. BIN bbm/img/Small/White/icon_235.png
  72. BIN bbm/img/Small/White/icon_242.png
  73. BIN bbm/img/Small/White/icon_269.png
  74. BIN bbm/img/Small/White/icon_273.png
  75. BIN bbm/img/Small/White/icon_280.png
  76. BIN bbm/img/Small/White/icon_283.png
  77. BIN bbm/img/Small/White/icon_292.png
  78. BIN bbm/img/avatar-128x128.png
  79. BIN bbm/img/avatar-32x32.png
  80. BIN bbm/img/avatar-64x64.png
  81. BIN bbm/img/avatar.png
  82. +101 −30 bbm/index.html
  83. +113 −152 bbm/js/bbm.js
  84. +8,972 −0 bbm/js/bbui-0.9.5.js
  85. +34 −0 bbm/menu.htm
  86. +48 −0 bbm/profile.htm
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,15 @@
-This sample is based on the Jam Americas 2012 lab sample that was made available here:
-https://github.com/blackberry/BB10-WebWorks-Community-Samples/tree/master/bbm
+This application provides a look at **blackberry.bbm.platform** as well as **blackberry.invoke** APIs that will enable developers to leverage BlackBerry Messenger integration within their BlackBerry 10 applications.
-Refer to the original sample for more information regarding the UI implementation, however please note that the actual BBM API implementation has since changed, and this sample should be used for reference regarding functionality implementation.
+To separate the BBM functionality from the remaining application, all relevant BBM implementation was implemented in **bbm.js** while the remaining files are leveraged to configure UI components, and define actions (click event listeners) connecting those components to the API functionality.
+
+#Known Issues
+
+**blackberry.bbm.platform.self.setDisplayPicture**
+* Not currently working.
+* Can be replaced with the **Set Avatar** invocation.
+
+**Start Chat**
+* Should display Contact Picker if no **uri** is provided; not currently working.
+* Can be replaced with the **Share Text* invocation (provide empty **data** string.)
+* If a URI is provided that exists in the users's BBM Contact List, a chat will be immediately started; working as intended.
+* If a URI is provided that does not exist in the user's BBM Contact List, an invitation to join BBM will be sent instead; working as intended.
View
@@ -19,40 +19,27 @@
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:rim="http://www.blackberry.com/ns/widgets"
- version="1.0.0.895"
- id="bbmsample"
+ version="1.0.0.0"
+ id="bbmapis"
xml:lang="en">
<!-- Application details. -->
- <name>BBM Sample</name>
- <author>Research In Motion</author>
-
- <!-- Application startup page. -->
+ <name>BBM APIs</name>
+ <author>Oros</author>
<content src="index.html"/>
- <!-- Application icon. -->
- <icon src="appicon.png" />
-
- <!-- Allow access to external URLs. -->
- <access uri="*" subdomains="true" />
-
- <!-- Do not cache content. -->
- <rim:cache disableAllCache="true" />
-
- <!-- Focus-based navigation for BBUI.js. -->
- <rim:navigation mode="focus" />
-
- <!-- Required permissions. -->
- <rim:permissions>
- <rim:permit>bbm_connect</rim:permit>
- </rim:permissions>
-
<!-- Required features for BBUI.js. -->
<feature id="blackberry.app" />
<feature id="blackberry.app.event"/>
<feature id="blackberry.system.event" />
- <feature id="blackberry.ui.dialog" />
-
+
<!-- Additional features. -->
<feature id="blackberry.bbm.platform" />
+ <feature id="blackberry.invoke" />
+ <feature id="blackberry.system" />
+
+ <!-- Required permissions. -->
+ <rim:permissions>
+ <rim:permit>bbm_connect</rim:permit>
+ </rim:permissions>
</widget>
Oops, something went wrong.

0 comments on commit 7e58e43

Please sign in to comment.