Application:isPlayerMode: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2015.03.22<br/> === Description === Returns true if app is ran on Gideros player and false, if it is ran as stand alone app <source la..."
 
No edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
'''Available since:''' Gideros 2015.03.22<br/>
'''Available since:''' Gideros 2015.03.22<br/>
'''Class:''' [[Application]]<br/>
=== Description ===
=== Description ===
Returns true if app is ran on Gideros player and false, if it is ran as stand alone app
Returns true if app is ran on Gideros player and, false if it is ran as stand alone app.
<source lang="lua">
<syntaxhighlight lang="lua">
= Application:isPlayerMode()
application:isPlayerMode()
</source>
</syntaxhighlight>
 
=== Example ===
<syntaxhighlight lang="lua">
if not application:isPlayerMode() then
-- do stuff that won't run on Gideros Player
end
</syntaxhighlight>
 
{{Application}}

Latest revision as of 08:36, 23 January 2025

Available since: Gideros 2015.03.22
Class: Application

Description

Returns true if app is ran on Gideros player and, false if it is ran as stand alone app.

application:isPlayerMode()

Example

if not application:isPlayerMode() then
	-- do stuff that won't run on Gideros Player
end