Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated BBM sample.

  • Loading branch information...
commit 7e58e43d6b9c54cf14fc45dc21cd6bd8e5c634e1 1 parent 4d9babb
@oros oros authored
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
87 bbm/LICENSE
@@ -1,6 +1,6 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
@@ -200,9 +200,9 @@
See the License for the specific language governing permissions and
limitations under the License.
- ==========================================================
- IScroll.js
- ==========================================================
+=============================================================
+ IScroll.js
+=============================================================
Copyright (c) 2009-2010 Matteo Spinelli, http://cubiq.org/
@@ -227,9 +227,9 @@
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
- ==========================================================
- Plastique Icons
- ==========================================================
+=============================================================
+ Plastique Icons
+=============================================================
Plastique Icon Set by Iconify.it, LLC is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
@@ -304,3 +304,72 @@
No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law.
+
+=============================================================
+ Subway Icons Set for RIM BB10 Dev Samples
+=============================================================
+
+ This is small Subway Icons Set released specially for RIM BB10 Dev Samples under CC BY 3.0 license.
+
+ Included icons in three size - 81px, 71px and 61px
+
+ Full set is available on Subway website:
+ http://subway.pixle.pl/rim/
+
+
+ Creative Commons Attribution 3.0 Unported
+ http://creativecommons.org/licenses/by/3.0/legalcode
+
+ THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
+
+ BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
+
+ 1. Definitions
+
+ "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License.
+ "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License.
+ "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership.
+ "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License.
+ "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast.
+ "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work.
+ "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
+ "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images.
+ "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium.
+ 2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws.
+
+ 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
+
+ to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections;
+ to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified.";
+ to Distribute and Publicly Perform the Work including as incorporated in Collections; and,
+ to Distribute and Publicly Perform Adaptations.
+ For the avoidance of doubt:
+
+ Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License;
+ Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and,
+ Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License.
+ The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved.
+
+ 4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
+
+ You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(b), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(b), as requested.
+ If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4 (b) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.
+ Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise.
+ 5. Representations, Warranties and Disclaimer
+
+ UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
+
+ 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+ 7. Termination
+
+ This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
+ Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
+ 8. Miscellaneous
+
+ Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
+ Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
+ If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
+ No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
+ This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
+ The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law.
View
17 bbm/README.md
@@ -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
37 bbm/config.xml
@@ -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>
View
5,389 bbm/css/bbui-0.9.5.css
5,389 additions, 0 deletions not shown
View
BIN  bbm/img/Large/White/icon_005.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_041.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_048.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_086.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_099.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_111.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_127.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_159.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_180.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_185.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_186.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_191.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_194.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_202.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_203.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_209.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_212.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_235.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_242.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_269.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_273.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_280.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_283.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Large/White/icon_292.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Medium/White/icon_005.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  bbm/img/Medium/White/icon_041.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_048.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_086.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_099.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_111.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_127.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_159.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_180.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_185.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_186.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_191.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_194.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_202.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_203.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_209.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_212.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_235.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_242.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_269.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_273.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_280.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_283.png
Diff not rendered
View
BIN  bbm/img/Medium/White/icon_292.png
Diff not rendered
View
6 bbm/img/README.md
@@ -0,0 +1,6 @@
+This is small Subway Icons Set released specially for RIM BB10 Dev Samples under CC BY 3.0 license.
+
+Included icons in three size - 81px, 71px and 61px
+
+Full set is available on Subway website:
+http://subway.pixle.pl/rim/
View
BIN  bbm/img/Small/White/icon_005.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_041.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_048.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_086.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_099.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_111.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_127.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_159.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_180.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_185.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_186.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_191.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_194.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_202.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_203.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_209.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_212.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_235.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_242.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_269.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_273.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_280.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_283.png
Diff not rendered
View
BIN  bbm/img/Small/White/icon_292.png
Diff not rendered
View
BIN  bbm/img/avatar-128x128.png
Diff not rendered
View
BIN  bbm/img/avatar-32x32.png
Diff not rendered
View
BIN  bbm/img/avatar-64x64.png
Diff not rendered
View
BIN  bbm/img/avatar.png
Diff not rendered
View
131 bbm/index.html
@@ -1,4 +1,5 @@
<!DOCTYPE html>
+<html>
<!--
* Copyright (c) 2012 Research In Motion Limited.
@@ -17,34 +18,104 @@
* limitations under the License.
-->
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-
- <title>BBM Sample</title>
-
- <link type="text/css" rel="stylesheet" href="./css/bbui-0.9.4.css" />
- </head>
- <body>
- <script type="text/javascript" src="local:///chrome/webworks.js"></script>
- <script type="text/javascript" src="./js/bbui-0.9.4.js"></script>
- <script type="text/javascript">
- /*global window, document, console, alert, blackberry, bb, _invoke */
-
- 'use strict';
-
- function onwebworksready() {
- document.removeEventListener('webworksready', onwebworksready, false);
-
- bb.init();
- bb.pushScreen('bbm.html', 'bbm');
- }
-
- function onload() {
- window.removeEventListener('load', onload, false);
- document.addEventListener('webworksready', onwebworksready, false);
- }
- window.addEventListener('load', onload, false);
- </script>
- </body>
+<head>
+ <link type="text/css" rel="stylesheet" href="./css/bbui-0.9.5.css" />
+</head>
+
+<body>
+ <script type="text/javascript" src="local:///chrome/webworks.js"></script>
+ <script type="text/javascript" src="./js/bbui-0.9.5.js"></script>
+ <script type="text/javascript" src="./js/bbm.js"></script>
+ <script type="text/javascript">
+ /*global bb, bbm */
+
+ window.addEventListener('DOMContentLoaded', function () {
+ document.addEventListener('webworksready', function () {
+ bb.init({
+ controlsDark: true,
+ listsDark: true,
+ ondomready: function (element, id) {
+ if (id === 'menu') {
+ /************************************************/
+ /* blackberry.bbm.platform */
+ /************************************************/
+
+ /* Register. */
+ element.querySelector('#register').addEventListener('click', function () {
+ if (bbm.registered === false) {
+ bbm.register();
+ }
+ }, false);
+
+ /* My Profile. */
+ element.querySelector('#myprofile').addEventListener('click', function () {
+ if (bbm.registered === true) {
+ bb.pushScreen('profile.htm', 'profile');
+ }
+ }, false);
+
+ /* Set Display Picture. */
+ element.querySelector('#setdispla').addEventListener('click', function () {
+ if (bbm.registered === true) {
+ bbm.setDisplayPicture();
+ }
+ }, false);
+
+ /* Invite to Download. */
+ element.querySelector('#invitedl').addEventListener('click', function () {
+ if (bbm.registered === true) {
+ bbm.inviteToDownload();
+ }
+ }, false);
+
+ /************************************************/
+ /* blackberry.invoke */
+ /************************************************/
+
+ /* Invite to BBM. */
+ element.querySelector('#invitebbm').addEventListener('click', function () {
+ bbm.inviteToBBM();
+ }, false);
+
+ /* Set Avatar. */
+ element.querySelector('#setavatar').addEventListener('click', function () {
+ bbm.setAvatar();
+ }, false);
+
+ /* Start Chat. */
+ element.querySelector('#startchat').addEventListener('click', function () {
+ bbm.startChat();
+ }, false);
+
+ /* Share Text. */
+ element.querySelector('#sharetext').addEventListener('click', function () {
+ bbm.shareText();
+ }, false);
+
+ /* Share Image. */
+ element.querySelector('#shareimg').addEventListener('click', function () {
+ bbm.shareImage();
+ }, false);
+ } else if (id === 'profile') {
+ /* Populate the profile. */
+ bbm.populate(element);
+
+ /* Refresh Profile. */
+ element.querySelector('#refresh').addEventListener('click', function () {
+ bbm.populate(element);
+ }, false);
+
+ /* Save profile. */
+ element.querySelector('#save').addEventListener('click', function () {
+ bbm.save();
+ }, false);
+ }
+ }
+ });
+ bb.pushScreen('menu.htm', 'menu');
+ }, false);
+ }, false);
+ </script>
+</body>
+
</html>
View
265 bbm/js/bbm.js
@@ -1,173 +1,134 @@
-/**
- * Copyright (c) 2012 Research In Motion Limited.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- *
- * You may obtain a copy of the License at:
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+/*global blackberry */
-/*global window, document, console, alert, blackberry */
-
-/* This file holds the majority of the functionality for integration with
- * BlackBerry Messenger.
- */
-
-var _bbm = {
+var bbm = {
registered: false,
- /* This will be called when the user clicks the 'set' button for
- * status or personal message.
+ /**
+ * Registers this application with the blackberry.bbm.platform APIs.
+ *
+ * NOTE: This is NOT required for the invoke APIs.
*/
- setField: function (field) {
- 'use strict';
- var status, message, onComplete;
-
- if (field === 'status') {
- /* Assign the status for this update. */
- if (document.querySelector('#status').getChecked() === true) {
- status = 'available';
- } else {
- status = 'busy';
+ register: function () {
+ blackberry.event.addEventListener('onaccesschanged', function (accessible, status) {
+ if (status === 'unregistered') {
+ blackberry.bbm.platform.register({
+ uuid: '33490f91-ad95-4ba9-82c4-33f6ad69fbbc'
+ });
+ } else if (status === 'allowed') {
+ bbm.registered = accessible;
}
-
- /* Assign the status message for this update. */
- message = document.querySelector('#statusMessage').value;
-
- /* Assign the onComplete function for this update. */
- onComplete = function (accepted) {
- if (accepted === true) {
- alert('Status update was accepted.');
- } else {
- alert('Status update was not accepted.');
- }
- };
-
- /* Call setStatus with our defined arguments. */
- blackberry.bbm.platform.self.setStatus(status, message, onComplete);
- } else if (field === 'personalMessage') {
- /* Assign the personal message for this update. */
- message = document.querySelector('#personalMessage').value;
-
- /* Assign the onComplete function for this update. */
- onComplete = function (accepted) {
- if (accepted === true) {
- alert('Status update was accepted.');
- } else {
- alert('Status update was not accepted.');
- }
- };
-
- /* Call setPersonalMessage with our defined arguments. */
- blackberry.bbm.platform.self.setPersonalMessage(message, onComplete);
- }
+ }, false);
},
- fieldChanged: function (element) {
- 'use strict';
-
- /* Reset all of our fields to invisible. */
- document.querySelector('#_status').style.display = 'none';
- document.querySelector('#_personalMessage').style.display = 'none';
- document.querySelector('#_ppid').style.display = 'none';
- document.querySelector('#_handle').style.display = 'none';
- document.querySelector('#_appVersion').style.display = 'none';
- document.querySelector('#_bbmsdkVersion').style.display = 'none';
-
- /* Show the chosen field. */
- document.querySelector("#_" + element.value).style.display = 'inline';
+ /**
+ * setDisplayPicture: Sets the BBM profile display picture.
+ */
+ setDisplayPicture: function () {
+ blackberry.bbm.platform.self.setDisplayPicture('local:///img/avatar-32x32.png');
},
- populate: function () {
- 'use strict';
-
- /* Only allow functionality if we've registered with BBM. */
- if (_bbm.registered === true) {
- /* Set the Display Name from the BBM profile. */
- document.querySelector('#displayName').innerHTML = blackberry.bbm.platform.self.displayName;
+ /**
+ * inviteToDownload: Displays a BBM list of existing users that can be
+ * contacted to also download this application.
+ */
+ inviteToDownload: function () {
+ blackberry.bbm.platform.users.inviteToDownload();
+ },
- /* Set the Status from the BBM profile. */
- if (blackberry.bbm.platform.self.status === 'available') {
- document.querySelector('#status').setChecked(true);
- } else {
- document.querySelector('#status').setChecked(false);
- }
+ /**
+ * inviteToBBM: Invokes the invite to BBM functionality to add BBM contacts.
+ */
+ inviteToBBM: function () {
+ blackberry.invoke.invoke({
+ action: 'bb.action.INVITEBBM',
+ uri: 'pin:2100000A'
+ });
+ },
- /* The remaining fields are direct assignments. */
- document.querySelector('#statusMessage').value = blackberry.bbm.platform.self.statusMessage;
- document.querySelector('#personalMessage').value = blackberry.bbm.platform.self.personalMessage;
- document.querySelector('#ppid').innerHTML = blackberry.bbm.platform.self.ppid;
- document.querySelector('#handle').innerHTML = blackberry.bbm.platform.self.handle;
- document.querySelector('#appVersion').innerHTML = blackberry.bbm.platform.self.appVersion;
- document.querySelector('#bbmsdkVersion').innerHTML = blackberry.bbm.platform.self.bbmsdkVersion;
- } else {
- alert('You must register with BBM first.');
- }
+ /**
+ * setAvatar: Invokes the avatar selector on the specified image.
+ */
+ setAvatar: function () {
+ blackberry.invoke.invoke({
+ target: 'sys.bbm.imagehandler',
+ action: 'bb.action.SET',
+ uri: 'local:///img/avatar.png'
+ });
},
- /* Will be called when the user clicks the Register button. */
- register: function () {
- 'use strict';
- var options;
+ /**
+ * startChat: Invokes a BBM chat with an existing BBM contact.
+ *
+ * Specifying a PIN that is not already in the user's contacts will result in the Invite To BBM screen.
+ *
+ * Specifying a PIN that is in the user's contacts will immediately start a chat with that person.
+ *
+ * Specifying no PIN should invoke the Contact Picker, but currently does not. However, shareText with empty data string should do the job.
+ */
+ startChat: function () {
+ blackberry.invoke.invoke({
+ action: 'bb.action.BBMCHAT'
+ });
+ },
- /* Only invoke this functionality if we have not yet registered. */
- if (_bbm.registered === false) {
- blackberry.event.addEventListener('onaccesschanged', function (allowed, reason) {
- /* If we haven't registered yet, kick off our attempt. */
- if (reason === 'unregistered') {
- /* A valid, unique, 36-character UUID is being used. */
- options = {
- uuid: "33490f91-ad95-4ba9-82c4-33f6ad69fbbc"
- };
+ /**
+ * shareText: Starts a chat session with pre-populated text.
+ */
+ shareText: function () {
+ blackberry.invoke.invoke({
+ target: 'sys.bbm.sharehandler',
+ action: 'bb.action.SHARE',
+ data: 'This is some text.',
+ mimeType: 'text/plain'
+ });
+ },
- /* Call the register function with our UUID. */
- blackberry.bbm.platform.register(options);
- } else if (allowed === true) {
- /* Access allowed. */
- _bbm.registered = true;
+ /**
+ * shareImage: Starts a chat session with attached image.
+ */
+ shareImage: function () {
+ blackberry.invoke.invoke({
+ target: 'sys.bbm.sharehandler',
+ action: 'bb.action.SHARE',
+ uri: 'local:///img/avatar.png'
+ });
+ },
- /* Show our BBM Fields panel. */
- document.querySelector('#profile').style.display = 'inline';
- } else if (reason === 'user') {
- /* Access blocked by user. */
- alert('Access is blocked by the user.');
- } else if (reason === 'rim') {
- /* Access blocked by RIM. */
- alert('Access is blocked by RIM.');
- } else {
- /* Remaining error codes have been implemented. */
- if (reason === 'itpolicy') {
- alert('Access is blocked by IT Policy.');
- } else if (reason === 'resetrequired') {
- alert('Access is blocked because a device reset is required to use the BBM Social Platform.');
- } else if (reason === 'nodata') {
- alert('Access is blocked because the device is out of data coverage. A data connection is required to register the application.');
- } else if (reason === 'temperror') {
- alert('Access is blocked because of a temporary error. The application should try to call blackberry.bbm.platform.register in 30 minutes, or the next time the application starts.');
- } else if (reason === 'nonuiapp') {
- alert('Access is blocked because blackberry.bbm.platform.register was called from a non-UI application.');
- }
- }
- });
- }
+ /**
+ * populate: Retrieve BBM profile information and populate a BBUI screen.
+ */
+ populate: function (element) {
+ element.querySelector('#displayname').setCaption(blackberry.bbm.platform.self.displayName);
+
+ element.querySelector('#available').setChecked(
+ blackberry.bbm.platform.self.status === 'available' ? true : false
+ );
+
+ element.querySelector('#statusmessage').value = blackberry.bbm.platform.self.statusMessage;
+ element.querySelector('#personalmessage').value = blackberry.bbm.platform.self.personalMessage;
+ element.querySelector('#ppid').value = blackberry.bbm.platform.self.ppid;
+ element.querySelector('#handle').value = blackberry.bbm.platform.self.handle;
+ element.querySelector('#applicationversion').value = blackberry.bbm.platform.self.appVersion;
+ element.querySelector('#bbmsdkversion').value = blackberry.bbm.platform.self.bbmsdkVersion;
},
- invite: function () {
- 'use strict';
+ /**
+ * save: Updates the user's BBM profile based on the current information.
+ */
+ save: function () {
+ /* Update status. */
+ blackberry.bbm.platform.self.setStatus(
+ document.querySelector('#available').getChecked() === true ? 'available' : 'busy',
+ document.querySelector('#statusmessage').value,
+ function (accepted) {
+ }
+ );
- /* Only allow functionality if we've registered with BBM. */
- if (_bbm.registered === true) {
- blackberry.bbm.platform.users.inviteToDownload();
- } else {
- alert('You must register with BBM first.');
- }
+ /* Update personal message. */
+ blackberry.bbm.platform.self.setPersonalMessage(
+ document.querySelector('#personalmessage').value,
+ function (accepted) {
+ }
+ );
}
};
View
8,972 bbm/js/bbui-0.9.5.js
8,972 additions, 0 deletions not shown
View
34 bbm/menu.htm
@@ -0,0 +1,34 @@
+<div style="background-color: #202020" data-bb-type="screen">
+ <div data-bb-type="image-list">
+ <div data-bb-type="header">blackberry.bbm.platform</div>
+ <div id="register" data-bb-type="item" data-bb-img="./img/Large/White/icon_127.png" data-bb-title="Register"></div>
+ <div id="myprofile" data-bb-type="item" data-bb-img="./img/Large/White/icon_186.png" data-bb-title="My Profile"></div>
+ <div id="setdispla" data-bb-type="item" data-bb-img="./img/Large/White/icon_273.png" data-bb-title="Set Display Picture"></div>
+ <div id="invitedl" data-bb-type="item" data-bb-img="./img/Large/White/icon_194.png" data-bb-title="Invite to Download"></div>
+ <div data-bb-type="header">blackberry.invoke</div>
+ <div id="invitebbm" data-bb-type="item" data-bb-img="./img/Large/White/icon_212.png" data-bb-title="Invite to BBM"></div>
+ <div id="setavatar" data-bb-type="item" data-bb-img="./img/Large/White/icon_086.png" data-bb-title="Set Avatar"></div>
+ <div id="startchat" data-bb-type="item" data-bb-img="./img/Large/White/icon_280.png" data-bb-title="Start Chat"></div>
+ <div id="sharetext" data-bb-type="item" data-bb-img="./img/Large/White/icon_242.png" data-bb-title="Share Text"></div>
+ <div id="shareimg" data-bb-type="item" data-bb-img="./img/Large/White/icon_209.png" data-bb-title="Share Image"></div>
+ <div data-bb-type="header">Notes and Known Issues</div>
+ </div>
+ <div style="background-color: #202020" data-bb-type="round-panel">
+ <div style="color: white;">Registration must occur before any of the <b>blackberry.bbm.platform</b> functionality becomes available; working as intended.</div>
+ </div>
+ <div style="background-color: #202020" data-bb-type="round-panel">
+ <div style="color: white;"><b>Set Display Picture</b> is not properly initiating an update. As a workaround, the <b>Set Avatar</b> invocation can be used.</div>
+ </div>
+ <div style="background-color: #202020" data-bb-type="round-panel">
+ <div style="color: white;"><b>Start Chat</b> is not properly initating a chat when no URI is provided; expected to provide <b>Contact Picker</b>. As a workaround, <b>Share Text</b> can be invoked with an empty <b>data</b> property.</div>
+ </div>
+ <div style="background-color: #202020" data-bb-type="round-panel">
+ <div style="color: white;"><b>Start Chat</b> will invite the contact to BBM if the provided PIN <b>does not exist</b> in your <b>Contact List</b>; working as intended.</div>
+ </div>
+ <div style="background-color: #202020" data-bb-type="round-panel">
+ <div style="color: white;"><b>Start Chat</b> will immediately start a chat session if the provided PIN <b>exists</b> in your <b>Contact List</b>; working as intended.</div>
+ </div>
+ <div style="background-color: #202020" data-bb-type="round-panel">
+ <div style="color: white;">There are currently some issues while saving modified <b>status</b> and <b>personal message</b> values.</div>
+ </div>
+</div>
View
48 bbm/profile.htm
@@ -0,0 +1,48 @@
+<div style="background-color: #202020" data-bb-type="screen">
+ <div id="displayname" data-bb-type="title" data-bb-caption="User Profile"></div>
+
+ <div data-bb-type="round-panel">
+ <div data-bb-type="label-control-container">
+
+ <div data-bb-type="row">
+ <div data-bb-type="label">Available</div>
+ <input id="available" type="checkbox" checked="false" />
+ </div>
+
+ <div data-bb-type="row">
+ <div data-bb-type="label">Status Message</div>
+ <input id="statusmessage" type="text" value="" />
+ </div>
+
+ <div data-bb-type="row">
+ <div data-bb-type="label">Personal Message</div>
+ <input id="personalmessage" type="text" value="" />
+ </div>
+
+ <div data-bb-type="row">
+ <div data-bb-type="label">PPID</div>
+ <input id="ppid" type="text" value="" readonly="readonly" />
+ </div>
+
+ <div data-bb-type="row">
+ <div data-bb-type="label">Handle</div>
+ <input id="handle" type="text" value="" readonly="readonly" />
+ </div>
+
+ <div data-bb-type="row">
+ <div data-bb-type="label">Application Version</div>
+ <input id="applicationversion" type="text" value="" readonly="readonly" />
+ </div>
+
+ <div data-bb-type="row">
+ <div data-bb-type="label">BBM SDK Version</div>
+ <input id="bbmsdkversion" type="text" value="" readonly="readonly" />
+ </div>
+
+ </div>
+ </div>
+ <div data-bb-type="action-bar" data-bb-back-caption="Back">
+ <div id="refresh" data-bb-type="action" data-bb-style="button" data-bb-overflow="false" data-bb-img="./img/Large/White/icon_048.png">Refresh</div>
+ <div id="save" data-bb-type="action" data-bb-style="button" data-bb-overflow="false" data-bb-img="./img/Large/White/icon_202.png">Save</div>
+ </div>
+</div>
Please sign in to comment.
Something went wrong with that request. Please try again.