blackberry.bbm.platform.users.BBMPlatformUser
Provides read-only access to a BBM user's information as defined in their BBM profile.
Instances of this object are not created, but are obtained from the BBM platform.
Current User
The current user'sBBMPlatformUser
instance is blackberry.bbm.platform.self. It also provides the ability to set properties of the current user.
Other Users
You can obtain other users from the following functions/callbacks:- contactsWithApp
- blackberry.bbm.platform.users.pickUsers
- blackberry.bbm.platform.users.event:onupdate
BBMPlatformUser
extensively.
Supported Platform(s)
- BlackBerry OS 5.0+ |
- BlackBerry 10 |
API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
---|---|---|---|---|---|---|---|
appVersion | Y | Y | Y | Y | |||
bbmsdkVersion | Y | Y | Y | Y | |||
displayName | Y | Y | Y | Y | |||
displayPicture | Y | Y | |||||
handle | Y | Y | Y | Y | |||
personalMessage | Y | Y | Y | Y | |||
ppid | Y | Y | Y | Y | |||
status | Y | Y | Y | Y | |||
statusMessage | Y | Y | Y | Y |
Configuration Document Settings
To use all of the API described for this object, you must ensure the following settings are in your configuration document: |
You must declare the feature element(s) below in your configuration document: |
Feature ID | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
---|---|---|---|---|---|---|---|
<feature id="blackberry.bbm.platform" /> | Y | Y | Y | Y |
Permission Elements (PlayBook and BlackBerry 10+) |
---|
You must declare the permission element(s) below in your configuration document: |
- <rim:permit>bbm_connect</rim:permit>
BBM APIs require this permission to be set |
Properties
String | appVersion |
Number | bbmsdkVersion |
String | displayName |
String | displayPicture |
String | handle |
String | personalMessage |
String | ppid |
String | status |
String | statusMessage |
Properties
readonly
String
appVersion
The version of this BBM Connected Application that the user is running.
Supported Platforms | |
---|---|
- BlackBerry OS 5.0+ | |
- BlackBerry 10 |
readonly
Number
bbmsdkVersion
The version of the BBM SDK that the user is running.
- BBM SDK 1.0:
100
- BBM SDK 1.2:
120
- BBM SDK 1.3:
130
Supported Platforms | |
---|---|
- BlackBerry OS 5.0+ | |
- BlackBerry 10 |
readonly
String
displayName
The display name.
Supported Platforms | |
---|---|
- BlackBerry OS 5.0+ | |
- BlackBerry 10 |
readonly
String
displayPicture
The display picture, encoded as a base64 image string.
This is not supported in BlackBerry OS 5.0
Supported Platforms | |
---|---|
- BlackBerry OS 6.0+ |
Code Example:
|
readonly
String
handle
A unique ID representing the user on a specific device. This will be different for the same user on different devices (BlackBerry smartphone, BlackBerry PlayBook, etc.)
Supported Platforms | |
---|---|
- BlackBerry OS 5.0+ | |
- BlackBerry 10 |
readonly
String
personalMessage
The personal message.
Supported Platforms | |
---|---|
- BlackBerry OS 5.0+ | |
- BlackBerry 10 |
readonly
String
ppid
A unique ID representing the user on all devices. This will be the same for the same user on all devices (BlackBerry smartphone, BlackBerry PlayBook, etc.)
Supported Platforms | |
---|---|
- BlackBerry OS 5.0+ | |
- BlackBerry 10 |