Open this page in the API Guide

MainMenu.close Method

Closes the main menu, and any dialogs that may be shown.