Returns the unique id of the device.
$m.getDeviceId(function(response){ juci.controls.get("device-id").value(response.result); }); |
Syntax
$m.getDeviceId(fp_callback)
Parameters
fp_callback
function (optional)
Function to execute when the device id is read. The function receives a response object as parameter with the following properties,
- result - {number}. Device id.
- error - {Object}. Available when the code is 0. The error object contains,
- message - {String}. A short description of the error.
- description - {String}. A detailed description of the error.
Remarks
Supported in Android, BlackBerry and Windows Phone 7 only.