my.setBackgroundColor
Dynamically set window background color.
Sample Code
copy
my.setBackgroundColor({
backgroundColor: '#ff0000',
backgroundColorTop: '#00ff00',
backgroundColorBottom: '#ff00ff'
})Parameters
The incoming parameter is of the Object type with the following attributes:
| Property | Type | Required | Description |
| backgroundColor | HexColor | No | Window background color. For Android, this property is mandatory. |
| backgroundColorTop | HexColor | No | Top window background color, supported in iOS only. |
| backgroundColorBottom | HexColor | No | Bottom window background color, supported in iOS only. |
| success | Function | No | Callback function upon call success. |
| fail | Function | No | Callback function upon call failure. |
| complete | Function | No | Callback function upon call completion (to be executed upon either call success or failure). |