You can find the most important JSDocs for creating an application shell at the following locations:
Method getUser() in namespace sap.ui2.shell
Class sap.ui2.shell.User
Class sap.ui2.shell.Menu