Difference between revisions of "Application:isPlayerMode"

From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight")
 
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
 +
-- do stuff that won't run on Gideros Player
 +
end
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
{{Application}}
 
{{Application}}

Latest revision as of 09: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