Function Platform.enterMessageLoop

Starts application message loop.

abstract int enterMessageLoop();

When returned from this method, application is shutting down.