Inform navigator that the app wishes to exit.
#include <bps/navigator.h>
BPS_API int navigator_close_window(void)
BlackBerry 10.0.0
An application should call this function when it is ready to terminate. The application should then wait until it receives a NAVIGATOR_EXIT event before shutting down.
BPS_SUCCESS upon succes, BPS_FAILURE with errno set otherwise.