Difference between revisions of "Application"
(→Events) |
(prefixindex) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | ||
<!-- GIDEROSOBJ:Application --> | <!-- GIDEROSOBJ:Application --> | ||
− | ''' | + | |
− | ''' | + | '''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/> |
− | === | + | '''Inherits from:''' [[Special:MyLanguage/Object|Object]]<br/> |
− | + | ||
− | [[Special:MyLanguage/Application|Application]] class contains the common functions that | + | === Description === |
− | <br /> | + | [[Special:MyLanguage/Application|Application]] class contains the common functions that's available to the current application. There is a global variable ''application'' of type [[Special:MyLanguage/Application|Application]] to access these functions. |
+ | <br /> | ||
+ | <br /> | ||
+ | |||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[Special:MyLanguage/Application: | + | === Methods === |
− | [[Special:MyLanguage/Application: | + | [[Special:MyLanguage/Application:canOpenUrl|Application:canOpenUrl]] ''Tests if it is possible to open provided url''<br/> |
− | [[Special:MyLanguage/Application: | + | [[Special:MyLanguage/Application:configureFrustum|Application:configureFrustum]] ''Configure the projection for 3D perspective.''<br/> |
− | [[Special:MyLanguage/Application: | + | [[Special:MyLanguage/Application:exit|Application:exit]] ''terminates the application''<br/> |
− | [[Special:MyLanguage/Application: | + | [[Special:MyLanguage/Application:get|Application:get]] ''returns state of desktop setting''<br/> |
− | [[Special:MyLanguage/Application:getLogicalHeight|Application:getLogicalHeight]] '' | + | [[Special:MyLanguage/Application:getApiVersion|Application:getApiVersion]] ''returns the API version''<br/> |
− | [[Special:MyLanguage/Application:getLogicalWidth|Application:getLogicalWidth]] '' | + | [[Special:MyLanguage/Application:getAppId|Application:getAppId]] ''returns the app id or bundle id''<br/> |
− | [[Special:MyLanguage/Application: | + | [[Special:MyLanguage/Application:getBackgroundColor|Application:getBackgroundColor]] ''returns the background color in hexadecimal format''<br/> |
− | [[Special:MyLanguage/Application: | + | [[Special:MyLanguage/Application:getContentHeight|Application:getContentHeight]] ''returns content height''<br/> |
− | [[Special:MyLanguage/Application: | + | [[Special:MyLanguage/Application:getContentWidth|Application:getContentWidth]] ''returns content width''<br/> |
− | [[Special:MyLanguage/Application: | + | [[Special:MyLanguage/Application:getDeviceHeight|Application:getDeviceHeight]] ''returns the physical height of the device in pixels''<br/> |
+ | [[Special:MyLanguage/Application:getDeviceWidth|Application:getDeviceWidth]] ''returns the physical width of the device in pixels''<br/> | ||
+ | [[Special:MyLanguage/Application:getDeviceInfo|Application:getDeviceInfo]] ''returns information about device''<br/> | ||
+ | [[Special:MyLanguage/Application:getDeviceOrientation|Application:getDeviceOrientation]] ''Get the device orientation''<br/> | ||
+ | [[Special:MyLanguage/Application:getDeviceSafeArea|Application:getDeviceSafeArea]] ''returns the safe display area bounds''<br/> | ||
+ | [[Special:MyLanguage/Application:getFps|Application:getFps]] ''returns the frame rate of the application''<br/> | ||
+ | [[Special:MyLanguage/Application:getKeyboardModifiers|Application:getKeyboardModifiers]] ''returns the current keyboard modifiers''<br/> | ||
+ | [[Special:MyLanguage/Application:getLanguage|Application:getLanguage]] ''returns the user language''<br/> | ||
+ | [[Special:MyLanguage/Application:getLocale|Application:getLocale]] ''returns the device locale''<br/> | ||
+ | [[Special:MyLanguage/Application:getLogicalBounds|Application:getLogicalBounds]] ''returns the physical screen bounds in logical space''<br/> | ||
+ | [[Special:MyLanguage/Application:getLogicalHeight|Application:getLogicalHeight]] ''returns the logical height of the application''<br/> | ||
+ | [[Special:MyLanguage/Application:getLogicalWidth|Application:getLogicalWidth]] ''returns the logical width of the application''<br/> | ||
+ | [[Special:MyLanguage/Application:getLogicalScaleX|Application:getLogicalScaleX]] ''returns the scaling of automatic screen scaling on the x-axis''<br/> | ||
+ | [[Special:MyLanguage/Application:getLogicalScaleY|Application:getLogicalScaleY]] ''returns the scaling of automatic screen scaling on the y-axis''<br/> | ||
+ | [[Special:MyLanguage/Application:getLogicalTranslateX|Application:getLogicalTranslateX]] ''returns the translation of automatic screen scaling on the x-axis''<br/> | ||
+ | [[Special:MyLanguage/Application:getLogicalTranslateY|Application:getLogicalTranslateY]] ''returns the translation of automatic screen scaling on the y-axis''<br/> | ||
+ | [[Special:MyLanguage/Application:getOrientation|Application:getOrientation]] ''returns the orientation of the application''<br/> | ||
+ | [[Special:MyLanguage/Application:getScaleMode|Application:getScaleMode]] ''returns the automatic scale mode of the application''<br/> | ||
+ | [[Special:MyLanguage/Application:getScreenDensity|Application:getScreenDensity]] ''returns the screen density in pixels per inch''<br/> | ||
+ | [[Special:MyLanguage/Application:getTextureMemoryUsage|Application:getTextureMemoryUsage]] ''returns the texture memory usage in Kbytes''<br/> | ||
+ | [[Special:MyLanguage/Application:isPlayerMode|Application:isPlayerMode]] ''Check if app runs on player''<br/> | ||
+ | [[Special:MyLanguage/Application:openUrl|Application:openUrl]] ''opens the given URL in the appropriate application''<br/> | ||
+ | [[Special:MyLanguage/Application:set|Application:set]] ''sets state of desktop settings''<br/> | ||
+ | [[Special:MyLanguage/Application:setBackgroundColor|Application:setBackgroundColor]] ''sets the background color in hexadecimal format''<br/> | ||
+ | [[Special:MyLanguage/Application:setFps|Application:setFps]] ''sets the frame rate of the application''<br/> | ||
+ | [[Special:MyLanguage/Application:setFullScreen|Application:setFullScreen]] ''Full screen or window mode''<br/> | ||
+ | [[Special:MyLanguage/Application:setKeepAwake|Application:setKeepAwake]] ''enables/disables screen dimming and device sleeping''<br/> | ||
+ | [[Special:MyLanguage/Application:setKeyboardVisibility|Application:setKeyboardVisibility]] <br/> | ||
+ | [[Special:MyLanguage/Application:setLogicalDimensions|Application:setLogicalDimensions]] ''sets the logical dimensions of the application''<br/> | ||
+ | [[Special:MyLanguage/Application:setOrientation|Application:setOrientation]] ''sets the orientation of the application''<br/> | ||
+ | [[Special:MyLanguage/Application:setScaleMode|Application:setScaleMode]] ''sets the automatic scale mode of the application''<br/> | ||
+ | [[Special:MyLanguage/Application:setWindowSize|Application:setWindowSize]] ''Sets desktop window to a specific size''<br/> | ||
+ | [[Special:MyLanguage/Application:vibrate|Application:vibrate]] ''vibrates the device''<br/> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === | + | === Events === |
[[Special:MyLanguage/Event.APPLICATION_START|Event.APPLICATION_START]]<br/> | [[Special:MyLanguage/Event.APPLICATION_START|Event.APPLICATION_START]]<br/> | ||
[[Special:MyLanguage/Event.APPLICATION_RESIZE|Event.APPLICATION_RESIZE]]<br/> | [[Special:MyLanguage/Event.APPLICATION_RESIZE|Event.APPLICATION_RESIZE]]<br/> | ||
Line 65: | Line 67: | ||
[[Special:MyLanguage/Event.APPLICATION_EXIT|Event.APPLICATION_EXIT]]<br/> | [[Special:MyLanguage/Event.APPLICATION_EXIT|Event.APPLICATION_EXIT]]<br/> | ||
[[Special:MyLanguage/Event.APPLICATION_RESUME|Event.APPLICATION_RESUME]]<br/> | [[Special:MyLanguage/Event.APPLICATION_RESUME|Event.APPLICATION_RESUME]]<br/> | ||
− | |||
------------------------------------------------------ | ------------------------------------------------------ | ||
− | You must delete this page[[APPLICATION_RESIZE]]<br/> | + | You must delete this page [[APPLICATION_RESIZE]]<br/> |
− | === | + | === Constants === |
[[Special:MyLanguage/Application.LANDSCAPE_LEFT|Application.LANDSCAPE_LEFT]]<br/><!-- GIDEROSCST:Application.LANDSCAPE_LEFT landscapeLeft--> | [[Special:MyLanguage/Application.LANDSCAPE_LEFT|Application.LANDSCAPE_LEFT]]<br/><!-- GIDEROSCST:Application.LANDSCAPE_LEFT landscapeLeft--> | ||
[[Special:MyLanguage/Application.LANDSCAPE_RIGHT|Application.LANDSCAPE_RIGHT]]<br/><!-- GIDEROSCST:Application.LANDSCAPE_RIGHT landscapeRight--> | [[Special:MyLanguage/Application.LANDSCAPE_RIGHT|Application.LANDSCAPE_RIGHT]]<br/><!-- GIDEROSCST:Application.LANDSCAPE_RIGHT landscapeRight--> | ||
[[Special:MyLanguage/Application.PORTRAIT|Application.PORTRAIT]]<br/><!-- GIDEROSCST:Application.PORTRAIT portrait--> | [[Special:MyLanguage/Application.PORTRAIT|Application.PORTRAIT]]<br/><!-- GIDEROSCST:Application.PORTRAIT portrait--> | ||
[[Special:MyLanguage/Application.PORTRAIT_UPSIDE_DOWN|Application.PORTRAIT_UPSIDE_DOWN]]<br/><!-- GIDEROSCST:Application.PORTRAIT_UPSIDE_DOWN portraitUpsideDown--> | [[Special:MyLanguage/Application.PORTRAIT_UPSIDE_DOWN|Application.PORTRAIT_UPSIDE_DOWN]]<br/><!-- GIDEROSCST:Application.PORTRAIT_UPSIDE_DOWN portraitUpsideDown--> | ||
+ | |||
|} | |} | ||
+ | <br/> | ||
+ | |||
+ | {{Special:PrefixIndex/Application}} | ||
+ | <br/> | ||
+ | |||
+ | {{Special:PrefixIndex/Event.APPLICATION}} |
Revision as of 11:21, 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 You must delete this page APPLICATION_RESIZE 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