The getColor() method is a method of the Display class. It returns the color from a high-level user interface. The general syntax of this method is as follows:
The colorspecifier parameter takes one of the following values:
- COLOR_BACKGROUND
- COLOR_FOREGROUND
- COLOR_HIGHLIGHTED_BACKGROUND
- COLOR_HIGHLIGHTED_FOREGROUND
This method returns a color in the form of 0×00RRGGBB.
Click here to get free scmad SCMAD exam practice questions. Pass SCMAD Mobile Application Developer in first attampt.