Page 91 - C_GPT _V4 _class_7
P. 91

Workspace: It arranges all the blocks for coding in the workspace.

                     Trash: It is used for deleting blocks that are not required.
                     Backpack: It stores the copy of all the blocks even when we exit App Inventor.

                 Making Click Event for Button
                 To make click event for button, follow the given steps:










                                                                                                    Drag and drop
                                                                                                    when Talking_
                                                                                                    Me. Click do to   2
                       Click on button
                   1   Talking_Me.                                                                  workspace.










                 This is an Event Handler block that will handle what happens when the button on your app is clicked.

                 Program the TextToSpeech Action

                 To program the TextToSpeech action, follow the given steps:

                                                  Drag it over to the workspace and drop it over
                                              3   the when Talking_Me.Click do block.

















                    1   Click on TextToSpeech1
                        block.









                                                             Click and hold the call TextToSpeech1.  2
                                                             Speak message block.



                 This block will execute when the button on our app is clicked and make our phone speak.




                                                                                               App Development      89
   86   87   88   89   90   91   92   93   94   95   96