Application:isPlayerMode: Difference between revisions

From GiderosMobile
m Text replacement - "<source" to "<syntaxhighlight"
No edit summary
 
(One intermediate revision 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>


=== Example ===
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
application:isPlayerMode()
if not application:isPlayerMode() then
</source>
-- 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