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