my.setBackgroundColor
Dynamically set window background color.
Sample Code
copy
my.setBackgroundColor({
backgroundColorTop: '#00ff00',
backgroundColorBottom: '#ff00ff'
})Parameters
The incoming parameter is of the Object type with the following attributes:
| Attributes | Type | Mandatory | Description |
| backgroundColor | HexColor | Yes | Window background color |
| backgroundColorTop | HexColor | Yes | Top window background color, supported in iOS only |
| backgroundColorBottom | HexColor | Yes | Bottom window background color, supported in iOS only |
| success | Function | No | Callback function for interface call success |
| fail | Function | No | Callback function for interface call failure |
| complete | Function | No | Callback function for interface call completion (to be executed for both call success and failure) |