The setText() method is a method of the StringItem class. It is used to change the text associated with the StringItem instance. The general syntax of this method is as follows:
Here, the str parameter specifies the text to be displayed with the instance of the StringItem class.
Click here to get free scmad SCMAD exam practice questions. Download free practice test for CX310-110 SCMAD Mobile Application Developer exam.