-
Notifications
You must be signed in to change notification settings - Fork 24
MobileCRM.Platform.getDeviceInfo
rescocrm edited this page May 15, 2023
·
9 revisions
Gets the device information.
| Argument | Type | Description |
|---|---|---|
| success | function(result) | A callback function for successful asynchronous result. The result will carry a MobileCRM._DeviceInfo object. |
| failed | function(error) | A callback function for command failure. The error argument will carry the error message. |
| scope | A scope for calling the callbacks; set "null" to call the callbacks in global scope. |
This example demonstrates how to get device info MobileCRM._DeviceInfo object.
// Request device info object
MobileCRM.Platform.getDeviceInfo(function (info) {
/// <param name="info" type="MobileCRM._DeviceInfo"></param>
var result = "Device Info : \n";
for (var prop in info) {
result += prop + " : " + info[prop].toString();
+"\n";
}
MobileCRM.bridge.alert(result);
}, MobileCRM.bridge.alert);