How do I add these variables within event blocks (EXTENSIONS ONLY)


How do I add a variable to my block in an extension for this. What code i need?

Do you mean a parameter?


From App Inventor Sources here -

  @SimpleEvent (description = "Event indicating that the contents of the file have been written.")
  public void AfterFileSaved(String fileName) {
    // invoke the application's "AfterFileSaved" event handler.
    EventDispatcher.dispatchEvent(this, "AfterFileSaved", fileName);

yes I meant that :sweat_smile:

thanks for it!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.