Application:isPlayerMode: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 4: Line 4:
=== 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.
<syntaxhighlight lang="lua">
application:isPlayerMode()
</syntaxhighlight>


<source lang="lua">
=== Example ===
application:isPlayerMode()
<syntaxhighlight lang="lua">
</source>
if not application:isPlayerMode() then
-- do stuff that won't run on Gideros Player
end
</syntaxhighlight>


{{Application}}
{{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