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:

PropertyType

Required

Description
backgroundColorHexColorNo Window background color. For Android, this property is mandatory.
backgroundColorTopHexColorNoTop window background color, supported in iOS only.
backgroundColorBottomHexColorNoBottom window background color, supported in iOS only.
successFunctionNoCallback function upon call success.
failFunctionNoCallback function upon call failure.
completeFunctionNoCallback function upon call completion (to be executed upon either call success or failure).