11-14-2013 12:32 AM
i need information about how the below properties can be read from the BB10 devices:
- Connection operator (eg can detect if on EE, Airtel (read from status bar)
- Contact Photos
- CPU usage
- Device Make
- Device Model
- Free Disk Space
- OS Version
- RAM usage
- Roaming (eg can detect if user is roaming)
i could see one example of native cascade plugin called https://github.com/blackberry/WebWorks-Community-A
Contact photos i can get it from webworks apis, can u please let me know abt other remaining ones, if there are any webworks apis to find out about the same.
11-18-2013 09:06 AM
All the WebWorks APIs are listed on our website, https://developer.blackberry.com/html5/apis/bb10_i
The device info extension was created to fill in the gaps that existed, so as far as I know it's your best bet for getting additional information not covered in the standard APIs.
11-18-2013 09:09 AM
Note the extensions published in the Community-APIs repos in Github are not actually Cascades, but C/C++. If the logic exists at the C/C++ layer, you are able to package them as methods into a WebWorks extension, similar to what you see with the DeviceInfo API.
Start by looking here for the Core native APIs you need to wrap in a WebWorks extension. You may be able to easily download and augment the existing DeviceInfo API, or create your own (see the TEMPLATE folder in the WebWorks-Community-APIs repo):
If you are not able/willing to do this yourself, I'd recommend submitting a new issue tagged as a request to the Github repo for these additions. Some kind community developer may help out: