Difference between revisions of "Application"
(prefixindex) |
(----) |
||
Line 5: | Line 5: | ||
'''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/> | '''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/> | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
− | '''Inherits from:''' [[ | + | '''Inherits from:''' [[Object]]<br/> |
=== Description === | === 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. |
<br /> | <br /> | ||
<br /> | <br /> | ||
Line 16: | Line 16: | ||
=== 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]] ''terminates the application''<br/> |
− | [[ | + | [[Application:get]] ''returns state of desktop setting''<br/> |
− | [[ | + | [[Application:getApiVersion]] ''returns the API version''<br/> |
− | [[ | + | [[Application:getAppId]] ''returns the app id or bundle id''<br/> |
− | [[ | + | [[Application:getBackgroundColor]] ''returns the background color in hexadecimal format''<br/> |
− | [[ | + | [[Application:getContentHeight]] ''returns content height''<br/> |
− | [[ | + | [[Application:getContentWidth]] ''returns content width''<br/> |
− | [[ | + | [[Application:getDeviceHeight]] ''returns the physical height of the device in pixels''<br/> |
− | [[ | + | [[Application:getDeviceWidth]] ''returns the physical width of the device in pixels''<br/> |
− | [[ | + | [[Application:getDeviceInfo]] ''returns information about device''<br/> |
− | [[ | + | [[Application:getDeviceOrientation]] ''Get the device orientation''<br/> |
− | [[ | + | [[Application:getDeviceSafeArea]] ''returns the safe display area bounds''<br/> |
− | [[ | + | [[Application:getFps]] ''returns the frame rate of the application''<br/> |
− | [[ | + | [[Application:getKeyboardModifiers]] ''returns the current keyboard modifiers''<br/> |
− | [[ | + | [[Application:getLanguage]] ''returns the user language''<br/> |
− | [[ | + | [[Application:getLocale]] ''returns the device locale''<br/> |
− | [[ | + | [[Application:getLogicalBounds]] ''returns the physical screen bounds in logical space''<br/> |
− | [[ | + | [[Application:getLogicalHeight]] ''returns the logical height of the application''<br/> |
− | [[ | + | [[Application:getLogicalWidth]] ''returns the logical width of the application''<br/> |
− | [[ | + | [[Application:getLogicalScaleX]] ''returns the scaling of automatic screen scaling on the x-axis''<br/> |
− | [[ | + | [[Application:getLogicalScaleY]] ''returns the scaling of automatic screen scaling on the y-axis''<br/> |
− | [[ | + | [[Application:getLogicalTranslateX]] ''returns the translation of automatic screen scaling on the x-axis''<br/> |
− | [[ | + | [[Application:getLogicalTranslateY]] ''returns the translation of automatic screen scaling on the y-axis''<br/> |
− | [[ | + | [[Application:getOrientation]] ''returns the orientation of the application''<br/> |
− | [[ | + | [[Application:getScaleMode]] ''returns the automatic scale mode of the application''<br/> |
− | [[ | + | [[Application:getScreenDensity]] ''returns the screen density in pixels per inch''<br/> |
− | [[ | + | [[Application:getTextureMemoryUsage]] ''returns the texture memory usage in Kbytes''<br/> |
− | [[ | + | [[Application:isPlayerMode]] ''Check if app runs on player''<br/> |
− | [[ | + | [[Application:openUrl]] ''opens the given URL in the appropriate application''<br/> |
− | [[ | + | [[Application:set]] ''sets state of desktop settings''<br/> |
− | [[ | + | [[Application:setBackgroundColor]] ''sets the background color in hexadecimal format''<br/> |
− | [[ | + | [[Application:setFps]] ''sets the frame rate of the application''<br/> |
− | [[ | + | [[Application:setFullScreen]] ''Full screen or window mode''<br/> |
− | [[ | + | [[Application:setKeepAwake]] ''enables/disables screen dimming and device sleeping''<br/> |
− | [[ | + | [[Application:setKeyboardVisibility]] <br/> |
− | [[ | + | [[Application:setLogicalDimensions]] ''sets the logical dimensions of the application''<br/> |
− | [[ | + | [[Application:setOrientation]] ''sets the orientation of the application''<br/> |
− | [[ | + | [[Application:setScaleMode]] ''sets the automatic scale mode of the application''<br/> |
− | [[ | + | [[Application:setWindowSize]] ''Sets desktop window to a specific size''<br/> |
− | [[ | + | [[Application:vibrate]] ''vibrates the device''<br/> |
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== Events === | === Events === | ||
− | [[ | + | [[Event.APPLICATION_START]]<br/> |
− | [[ | + | [[Event.APPLICATION_RESIZE]]<br/> |
− | [[ | + | <!-- You must delete this page [[APPLICATION_RESIZE]]<br/> --> |
− | [[ | + | [[Event.APPLICATION_SUSPEND]]<br/> |
− | [[ | + | [[Event.APPLICATION_EXIT]]<br/> |
− | + | [[Event.APPLICATION_RESUME]]<br/> | |
− | |||
=== Constants === | === Constants === | ||
− | [[ | + | [[Application.LANDSCAPE_LEFT]]<br/><!-- GIDEROSCST:Application.LANDSCAPE_LEFT landscapeLeft--> |
− | [[ | + | [[Application.LANDSCAPE_RIGHT]]<br/><!-- GIDEROSCST:Application.LANDSCAPE_RIGHT landscapeRight--> |
− | [[ | + | [[Application.PORTRAIT]]<br/><!-- GIDEROSCST:Application.PORTRAIT portrait--> |
− | [[ | + | [[Application.PORTRAIT_UPSIDE_DOWN]]<br/><!-- GIDEROSCST:Application.PORTRAIT_UPSIDE_DOWN portraitUpsideDown--> |
|} | |} | ||
− | + | ||
+ | ---- | ||
{{Special:PrefixIndex/Application}} | {{Special:PrefixIndex/Application}} |
Revision as of 16:02, 2 December 2019
Supported platforms:
Available since: Gideros 2011.6
Inherits from: Object
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 |
EventsEvent.APPLICATION_START ConstantsApplication.LANDSCAPE_LEFT |
- Application
- Application.CONSTANTS
- Application.LANDSCAPE LEFT
- Application.LANDSCAPE RIGHT
- Application.PORTRAIT
- Application.PORTRAIT UPSIDE DOWN
- Application:applyStyles
- Application:canOpenUrl
- Application:checkPermission
- Application:configureFrustum
- Application:enableDrawInfo
- Application:enableOnDemandDraw
- Application:exit
- Application:get
- Application:getApiVersion
- Application:getAppId
- Application:getBackgroundColor
- Application:getClipboard
- Application:getContentHeight
- Application:getContentWidth
- Application:getDeviceHeight
- Application:getDeviceInfo
- Application:getDeviceName
- Application:getDeviceOrientation
- Application:getDeviceSafeArea
- Application:getDeviceWidth
- Application:getFps
- Application:getKeyboardModifiers
- Application:getLanguage
- Application:getLocale
- Application:getLogicalBounds
- Application:getLogicalHeight
- Application:getLogicalScaleX
- Application:getLogicalScaleY
- Application:getLogicalTranslateX
- Application:getLogicalTranslateY
- Application:getLogicalWidth
- Application:getNativePath
- Application:getOrientation
- Application:getProjectProperties
- Application:getScaleMode
- Application:getScreenDensity
- Application:getTextureMemoryUsage
- Application:isPlayerMode
- Application:openUrl
- Application:requestPermissions
- Application:set
- Application:setBackgroundColor
- Application:setClipboard
- Application:setEventMerging
- Application:setFps
- Application:setFullScreen
- Application:setKeepAwake
- Application:setKeyboardVisibility
- Application:setLogicalDimensions
- Application:setOrientation
- Application:setScaleMode
- Application:setTextInput
- Application:setWindowSize
- Application:vibrate