MobileCRM.Application.getAppImage - Resconet/JSBridge GitHub Wiki
Gets the colorized application image. It is taken either from customization package or from application bundle.
Argument | Type | Description |
---|---|---|
imageName | String | Defines the image name (e.g. "Buttons.Call.png"). |
colorize | String | If the image supports colorization, this value defines the colorization color. It can be either integer with RGB value or the application color name as defined in MobileCRM.Application.getAppColor. Leave null if no colorization is desired. |
success | function(result) | A callback function for successful asynchronous result. The result will carry a String object with "data:" URL containing base64-encoded colorized application image. |
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. |