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:

AttributesTypeMandatoryDescription
backgroundColorHexColorYesWindow background color
backgroundColorTopHexColorYesTop window background color, supported in iOS only
backgroundColorBottomHexColorYesBottom window background color, supported in iOS only
successFunctionNoCallback function for interface call success
failFunctionNoCallback function for interface call failure
completeFunctionNoCallback function for interface call completion (to be executed for both call success and failure)