Difference between revisions of "Application"
From GiderosMobile
Line 9: | Line 9: | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
− | [[Application:canOpenUrl]] | + | [[Application:canOpenUrl]] {{<translate>Tests if it is possible to open provided url</translate>}}<br/> |
− | [[Application:configureFrustum]] | + | [[Application:configureFrustum]] {{<translate>Configure the projection for 3D perspective.</translate>}}<br/> |
− | [[Application:exit]] | + | [[Application:exit]] {{<translate>Application - terminates the application</translate>}}<br/> |
− | [[Application:getApiVersion]] | + | [[Application:getApiVersion]] {{<translate>Application - returns the API version</translate>}}<br/> |
− | [[Application:getAppId]] | + | [[Application:getAppId]] {{<translate>Application - returns the app id or bundle id</translate>}}<br/> |
− | [[Application:getBackgroundColor]] | + | [[Application:getBackgroundColor]] {{<translate>Application - returns the background color in hexadecimal format</translate>}}<br/> |
− | [[Application:getContentHeight]] | + | [[Application:getContentHeight]] {{<translate>Application - returns content height</translate>}}<br/> |
− | [[Application:getContentWidth]] | + | [[Application:getContentWidth]] {{<translate>Application - returns content width</translate>}}<br/> |
− | [[Application:getDeviceHeight]] | + | [[Application:getDeviceHeight]] {{<translate>Application - returns the physical height of the device in pixels</translate>}}<br/> |
− | [[Application:getDeviceInfo]] | + | [[Application:getDeviceInfo]] {{<translate>Application - returns information about device</translate>}}<br/> |
− | [[Application:getDeviceOrientation]] | + | [[Application:getDeviceOrientation]] {{<translate>Get the device orientation</translate>}}<br/> |
− | [[Application:getDeviceSafeArea]] | + | [[Application:getDeviceSafeArea]] {{<translate>Application - returns the safe display area bounds</translate>}}<br/> |
− | [[Application:getDeviceWidth]] | + | [[Application:getDeviceWidth]] {{<translate>Application - returns the physical width of the device in pixels</translate>}}<br/> |
− | [[Application:getFps]] | + | [[Application:getFps]] {{<translate>Application - returns the frame rate of the application</translate>}}<br/> |
− | [[Application:getLanguage]] | + | [[Application:getLanguage]] {{<translate>Application - returns the user language</translate>}}<br/> |
− | [[Application:getLocale]] | + | [[Application:getLocale]] {{<translate>Application - returns the device locale</translate>}}<br/> |
− | [[Application:getLogicalBounds]] | + | [[Application:getLogicalBounds]] {{<translate>Application - returns the physical screen bounds in logical space</translate>}}<br/> |
− | [[Application:getLogicalHeight]] | + | [[Application:getLogicalHeight]] {{<translate>Application - returns the logical height of the application</translate>}}<br/> |
− | [[Application:getLogicalScaleX]] | + | [[Application:getLogicalScaleX]] {{<translate>Application - returns the scaling of automatic screen scaling on the x-axis</translate>}}<br/> |
− | [[Application:getLogicalScaleY]] | + | [[Application:getLogicalScaleY]] {{<translate>Application - returns the scaling of automatic screen scaling on the y-axis</translate>}}<br/> |
− | [[Application:getLogicalTranslateX]] | + | [[Application:getLogicalTranslateX]] {{<translate>Application - returns the translation of automatic screen scaling on the x-axis</translate>}}<br/> |
− | [[Application:getLogicalTranslateY]] | + | [[Application:getLogicalTranslateY]] {{<translate>Application - returns the translation of automatic screen scaling on the y-axis</translate>}}<br/> |
− | [[Application:getLogicalWidth]] | + | [[Application:getLogicalWidth]] {{<translate>Application - returns the logical width of the application</translate>}}<br/> |
− | [[Application:getOrientation]] | + | [[Application:getOrientation]] {{<translate>Application - returns the orientation of the application</translate>}}<br/> |
− | [[Application:getScaleMode]] | + | [[Application:getScaleMode]] {{<translate>Application - returns the automatic scale mode of the application</translate>}}<br/> |
− | [[Application:getScreenDensity]] | + | [[Application:getScreenDensity]] {{<translate>Application - returns the screen density in pixels per inch</translate>}}<br/> |
− | [[Application:getTextureMemoryUsage]] | + | [[Application:getTextureMemoryUsage]] {{<translate>Application - returns the texture memory usage in Kbytes</translate>}}<br/> |
− | [[Application:isPlayerMode]] | + | [[Application:isPlayerMode]] {{<translate>Check if app runs on player</translate>}}<br/> |
− | [[Application:openUrl]] | + | [[Application:openUrl]] {{<translate>Application - opens the given URL in the appropriate application</translate>}}<br/> |
− | [[Application:setBackgroundColor]] | + | [[Application:setBackgroundColor]] {{<translate>Application - sets the background color in hexadecimal format</translate>}}<br/> |
− | [[Application:setFps]] | + | [[Application:setFps]] {{<translate>Application - sets the frame rate of the application</translate>}}<br/> |
− | [[Application:setFullScreen]] | + | [[Application:setFullScreen]] {{<translate>Full screen or window mode</translate>}}<br/> |
− | [[Application:setKeepAwake]] | + | [[Application:setKeepAwake]] {{<translate>Application - enables/disables screen dimming and device sleeping</translate>}}<br/> |
− | [[Application:setKeyboardVisibility]] | + | [[Application:setKeyboardVisibility]] {{<translate></translate>}}<br/> |
− | [[Application:setLogicalDimensions]] | + | [[Application:setLogicalDimensions]] {{<translate>Application - sets the logical dimensions of the application</translate>}}<br/> |
− | [[Application:setOrientation]] | + | [[Application:setOrientation]] {{<translate>Application - sets the orientation of the application</translate>}}<br/> |
− | [[Application:setScaleMode]] | + | [[Application:setScaleMode]] {{<translate>Application - sets the automatic scale mode of the application</translate>}}<br/> |
− | [[Application:setWindowSize]] | + | [[Application:setWindowSize]] {{<translate>Sets desktop window to a specific size</translate>}}<br/> |
− | [[Application:vibrate]] | + | [[Application:vibrate]] {{<translate>Application - vibrates the device</translate>}}<br/> |
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === |
Revision as of 14:19, 23 August 2018
Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6
Description
Application class contains the common functions that's available to the current application. There is a global variable application of type Application to access these functions.