What function is available to exit a mobile app ?
Could you explain your use case better? In mobile apps it isn't usual to have a "quit application" function. The user can simply navigate to the home screen and the app will be left running in the background and eventually terminated by the OS.
You can read this article for more information: