Identity
The Identity object contains information regarding the user's identity and accounts on a BlackBerry smartphone.
Supported Platform(s)
- BlackBerry OS 5.0+ |
- BlackBerry PlayBook 1.0+ |
- BlackBerry 10 |
- Ripple Emulator |
API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
---|---|---|---|---|---|---|---|
blackberry.identity.getServiceList | Y | Y | Y | Y | |||
blackberry.identity.getTransportList | Y | Y | Y | Y | |||
http://localhost:8472/blackberry/identity/get | Y | Y | |||||
IMEI | Y | Y | Y | Y | Y | ||
IMSI | Y | Y | Y | Y | |||
PIN | Y | Y | Y | Y | Y | Y | |
uuid | 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.identity" /> | Y | Y | Y | Y | Y | Y | Y |
<feature id="blackberry.identity.phone" /> | Y | Y | Y | Y | Y | Y | Y |
Permission Elements (PlayBook and BlackBerry 10+) |
---|
You must declare the permission element(s) below in your configuration document: |
- <rim:permit>read_device_identifying_information</rim:permit>
Permits your app to access device identifiers. |
Functions
Service[] | blackberry.identity.getServiceList |
Transport[] | blackberry.identity.getTransportList |
URI Functions
JSON of all the properties | http://localhost:8472/blackberry/identity/get |
Functions
static
Service[]
blackberry.identity.getServiceList
()
Returns the list of Service objects that describe each of the services that the user has for their device.
Supported Platforms | |
---|---|
- BlackBerry OS 5.0+ | |
- Ripple Emulator |
static
Transport[]
blackberry.identity.getTransportList
()
Returns a list of possible communications transports that can be used.
Supported Platforms | |
---|---|
- BlackBerry OS 5.0+ | |
- Ripple Emulator |
Code Example:
|
Properties
static
readonly
String
IMEI
Contains the IMEI number for the smartphone.
Supported Platforms | |
---|---|
- BlackBerry OS 5.0+ | |
- BlackBerry 10 | |
- Ripple Emulator |
static
readonly
String
IMSI
Contains the IMSI number for the smartphone.
Supported Platforms | |
---|---|
- BlackBerry OS 5.0+ | |
- Ripple Emulator |
URI Functions
http://localhost:8472/blackberry/identity/get
Returns a JSON object containing the PIN of the device.
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ |
Return:
{ "data":{ "PIN":"0x12345678", } }
Code Example:
|
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 18:15:39 GMT-0500 (EST)