<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_17) on Sun Nov 03 15:35:39 CET 2013 -->
<title>Application (libgdx API)
</title>
<meta name="date" content="2013-11-03">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Application (libgdx API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.
</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview
</a></li>
<li><a href="package-summary.html">Package
</a></li>
<li class="navBarCell1Rev">Class
</li>
<li><a href="class-use/Application.html">Use
</a></li>
<li><a href="package-tree.html">Tree
</a></li>
<li><a href="../../../deprecated-list.html">Deprecated
</a></li>
<li><a href="../../../index-all.html">Index
</a></li>
<li><a href="../../../help-doc.html">Help
</a></li>
</ul>
<div class="aboutLanguage"><em>
libgdx API
<style>
body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold }
.TableHeadingColor { background:#EEEEFF; }
a { text-decoration:none }
a:hover { text-decoration:underline }
a:link, a:visited { color:blue }
table { border:0px }
.TableRowColor td:first-child { border-left:1px solid black }
.TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
hr { border:0px; border-bottom:1px solid #333366; }
</style>
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Class
</li>
<li><a href="../../../com/badlogic/gdx/Application.ApplicationType.html" title="enum in com.badlogic.gdx"><span class="strong">Next Class
</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/badlogic/gdx/Application.html" target="_top">Frames
</a></li>
<li><a href="Application.html" target="_top">No Frames
</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes
</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:
</li>
<li><a href="#nested_class_summary">Nested
</a> |
</li>
<li><a href="#field_summary">Field
</a> |
</li>
<li>Constr
|
</li>
<li><a href="#method_summary">Method
</a></li>
</ul>
<ul class="subNavList">
<li>Detail:
</li>
<li><a href="#field_detail">Field
</a> |
</li>
<li>Constr
|
</li>
<li><a href="#method_detail">Method
</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.badlogic.gdx
</div>
<h2 title="Interface Application" class="title">Interface Application
</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Known Implementing Classes:
</dt>
<dd><a href="../../../com/badlogic/gdx/backends/android/AndroidApplication.html" title="class in com.badlogic.gdx.backends.android">AndroidApplication
</a>,
<a href="../../../com/badlogic/gdx/backends/gwt/GwtApplication.html" title="class in com.badlogic.gdx.backends.gwt">GwtApplication
</a>,
<a href="../../../com/badlogic/gdx/backends/iosrobovm/IOSApplication.html" title="class in com.badlogic.gdx.backends.iosrobovm">IOSApplication
</a>,
<a href="../../../com/badlogic/gdx/backends/jglfw/JglfwApplication.html" title="class in com.badlogic.gdx.backends.jglfw">JglfwApplication
</a>,
<a href="../../../com/badlogic/gdx/backends/lwjgl/LwjglApplication.html" title="class in com.badlogic.gdx.backends.lwjgl">LwjglApplication
</a>,
<a href="../../../com/badlogic/gdx/backends/lwjgl/LwjglCanvas.html" title="class in com.badlogic.gdx.backends.lwjgl">LwjglCanvas
</a></dd>
</dl>
<hr>
<br>
<pre>public interface
<span class="strong">Application
</span></pre>
<div class="block"><p>
An
<code>Application
</code> is the main entry point of your project. It sets up a window and rendering surface and manages the
different aspects of your application, namely
<a href="../../../com/badlogic/gdx/Graphics.html" title="interface in com.badlogic.gdx"><code>Graphics
</code></a>,
<a href="../../../com/badlogic/gdx/Audio.html" title="interface in com.badlogic.gdx"><code>Audio
</code></a>,
<a href="../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx"><code>Input
</code></a> and
<a href="../../../com/badlogic/gdx/Files.html" title="interface in com.badlogic.gdx"><code>Files
</code></a>. Think of an
Application being equivalent to Swing's
<code>JFrame
</code> or Android's
<code>Activity
</code>.
</p>
<p>
An application can be an instance of any of the following:
<ul>
<li>a desktop application (see
<code>JglfwApplication
</code> found in gdx-backends-jglfw.jar)
</li>
<li>an Android application (see
<code>AndroidApplication
</code> found in gdx-backends-android.jar)
</li>
<li>a HTML5 application (see
<code>GwtApplication
</code> found in gdx-backends-gwt.jar)
</li>
<li>an iOS application (see
<code>IOSApplication
</code> found in gdx-backends-iosmonotouch.jar)
</li>
</ul>
Each application class has it's own startup and
initialization methods. Please refer to their documentation for more information.
</p>
<p>
While game programmers are used to having a main loop, libgdx employs a different concept to accommodate the event based nature
of Android applications a little more. You application logic must be implemented in a
<a href="../../../com/badlogic/gdx/ApplicationListener.html" title="interface in com.badlogic.gdx"><code>ApplicationListener
</code></a> which has
methods that get called by the Application when the application is created, resumed, paused, disposed or rendered. As a
developer you will simply implement the ApplicationListener interface and fill in the functionality accordingly. The
ApplicationListener is provided to a concrete Application instance as a parameter to the constructor or another initialization
method. Please refer to the documentation of the Application implementations for more information. Note that the
ApplicationListener can be provided to any Application implementation. This means that you only need to write your program
logic once and have it run on different platforms by passing it to a concrete Application implementation.
</p>
<p>
The Application interface provides you with a set of modules for graphics, audio, input and file i/o.
</p>
<p>
<a href="../../../com/badlogic/gdx/Graphics.html" title="interface in com.badlogic.gdx"><code>Graphics
</code></a> offers you various methods to output visuals to the screen. This is achieved via OpenGL ES 1.0, 1.1 or 2.0
depending on what's available an the platform. On the desktop the features of OpenGL ES 2.0 are emulated via desktop OpenGL. On
Android the functionality of the Java OpenGL ES bindings is used.
</p>
<p>
<a href="../../../com/badlogic/gdx/Audio.html" title="interface in com.badlogic.gdx"><code>Audio
</code></a> offers you various methods to output and record sound and music. This is achieved via the Java Sound API on the
desktop. On Android the Android media framework is used.
</p>
<p>
<a href="../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx"><code>Input
</code></a> offers you various methods to poll user input from the keyboard, touch screen, mouse and accelerometer.
Additionally you can implement an
<a href="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx"><code>InputProcessor
</code></a> and use it with
<a href="../../../com/badlogic/gdx/Input.html#setInputProcessor(com.badlogic.gdx.InputProcessor)"><code>Input.setInputProcessor(InputProcessor)
</code></a> to
receive input events.
</p>
<p>
<a href="../../../com/badlogic/gdx/Files.html" title="interface in com.badlogic.gdx"><code>Files
</code></a> offers you various methods to access internal and external files. An internal file is a file that is stored near
your application. On Android internal files are equivalent to assets. On the desktop the classpath is first scanned for the
specified file. If that fails then the root directory of your application is used for a look up. External files are resources
you create in your application and write to an external storage. On Android external files reside on the SD-card, on the
desktop external files are written to a users home directory. If you know what you are doing you can also specify absolute file names.
Absolute filenames are not portable, so take great care when using this feature.
</p>
<p>
<a href="../../../com/badlogic/gdx/Net.html" title="interface in com.badlogic.gdx"><code>Net
</code></a> offers you various methods to perform network operations, such as performing HTTP requests, or creating server and
client sockets for more elaborate network programming.
</p>
<p>
The
<code>Application
</code> also has a set of methods that you can use to query specific information such as the operating
system the application is currently running on and so forth. This allows you to have operating system dependent code paths. It
is however not recommended to use this facilities.
</p>
<p>
The
<code>Application
</code> also has a simple logging method which will print to standard out on the desktop and to logcat on
Android.
</p></div>
<dl><dt><span class="strong">Author:
</span></dt>
<dd>mzechner
</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary
</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes
</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type
</th>
<th class="colLast" scope="col">Interface and Description
</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.ApplicationType.html" title="enum in com.badlogic.gdx">Application.ApplicationType
</a></strong></code>
<div class="block">Enumeration of possible
<a href="../../../com/badlogic/gdx/Application.html" title="interface in com.badlogic.gdx"><code>Application
</code></a> types
</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary
</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields
</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type
</th>
<th class="colLast" scope="col">Field and Description
</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#LOG_DEBUG">LOG_DEBUG
</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#LOG_ERROR">LOG_ERROR
</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#LOG_INFO">LOG_INFO
</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#LOG_NONE">LOG_NONE
</a></strong></code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary
</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods
</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type
</th>
<th class="colLast" scope="col">Method and Description
</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#addLifecycleListener(com.badlogic.gdx.LifecycleListener)">addLifecycleListener
</a></strong>(
<a href="../../../com/badlogic/gdx/LifecycleListener.html" title="interface in com.badlogic.gdx">LifecycleListener
</a> listener)
</code>
<div class="block">Adds a new
<a href="../../../com/badlogic/gdx/LifecycleListener.html" title="interface in com.badlogic.gdx"><code>LifecycleListener
</code></a> to the application.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#debug(java.lang.String, java.lang.String)">debug
</a></strong>(java.lang.String
tag,
java.lang.String
message)
</code>
<div class="block">Logs a debug message to the console or logcat
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#debug(java.lang.String, java.lang.String, java.lang.Throwable)">debug
</a></strong>(java.lang.String
tag,
java.lang.String
message,
java.lang.Throwable
exception)
</code>
<div class="block">Logs a debug message to the console or logcat
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#error(java.lang.String, java.lang.String)">error
</a></strong>(java.lang.String
tag,
java.lang.String
message)
</code>
<div class="block">Logs an error message to the console or logcat
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#error(java.lang.String, java.lang.String, java.lang.Throwable)">error
</a></strong>(java.lang.String
tag,
java.lang.String
message,
java.lang.Throwable
exception)
</code>
<div class="block">Logs an error message to the console or logcat
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#exit()">exit
</a></strong>()
</code>
<div class="block">Schedule an exit from the application.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../com/badlogic/gdx/ApplicationListener.html" title="interface in com.badlogic.gdx">ApplicationListener
</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#getApplicationListener()">getApplicationListener
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../com/badlogic/gdx/Audio.html" title="interface in com.badlogic.gdx">Audio
</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#getAudio()">getAudio
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../com/badlogic/gdx/utils/Clipboard.html" title="interface in com.badlogic.gdx.utils">Clipboard
</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#getClipboard()">getClipboard
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../com/badlogic/gdx/Files.html" title="interface in com.badlogic.gdx">Files
</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#getFiles()">getFiles
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../com/badlogic/gdx/Graphics.html" title="interface in com.badlogic.gdx">Graphics
</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#getGraphics()">getGraphics
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input
</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#getInput()">getInput
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#getJavaHeap()">getJavaHeap
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#getLogLevel()">getLogLevel
</a></strong>()
</code>
<div class="block">Gets the log level.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#getNativeHeap()">getNativeHeap
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../com/badlogic/gdx/Net.html" title="interface in com.badlogic.gdx">Net
</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#getNet()">getNet
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../com/badlogic/gdx/Preferences.html" title="interface in com.badlogic.gdx">Preferences
</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#getPreferences(java.lang.String)">getPreferences
</a></strong>(java.lang.String
name)
</code>
<div class="block">Returns the
<a href="../../../com/badlogic/gdx/Preferences.html" title="interface in com.badlogic.gdx"><code>Preferences
</code></a> instance of this Application.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../com/badlogic/gdx/Application.ApplicationType.html" title="enum in com.badlogic.gdx">Application.ApplicationType
</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#getType()">getType
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#getVersion()">getVersion
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#log(java.lang.String, java.lang.String)">log
</a></strong>(java.lang.String
tag,
java.lang.String
message)
</code>
<div class="block">Logs a message to the console or logcat
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#log(java.lang.String, java.lang.String, java.lang.Throwable)">log
</a></strong>(java.lang.String
tag,
java.lang.String
message,
java.lang.Throwable
exception)
</code>
<div class="block">Logs a message to the console or logcat
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#postRunnable(java.lang.Runnable)">postRunnable
</a></strong>(java.lang.Runnable
runnable)
</code>
<div class="block">Posts a
<code>Runnable
</code> on the main loop thread.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#removeLifecycleListener(com.badlogic.gdx.LifecycleListener)">removeLifecycleListener
</a></strong>(
<a href="../../../com/badlogic/gdx/LifecycleListener.html" title="interface in com.badlogic.gdx">LifecycleListener
</a> listener)
</code>
<div class="block">Removes the
<a href="../../../com/badlogic/gdx/LifecycleListener.html" title="interface in com.badlogic.gdx"><code>LifecycleListener
</code></a>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../com/badlogic/gdx/Application.html#setLogLevel(int)">setLogLevel
</a></strong>(int
logLevel)
</code>
<div class="block">Sets the log level.
</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail
</h3>
<a name="LOG_NONE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOG_NONE
</h4>
<pre>static final
int LOG_NONE
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../constant-values.html#com.badlogic.gdx.Application.LOG_NONE">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="LOG_DEBUG">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOG_DEBUG
</h4>
<pre>static final
int LOG_DEBUG
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../constant-values.html#com.badlogic.gdx.Application.LOG_DEBUG">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="LOG_INFO">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOG_INFO
</h4>
<pre>static final
int LOG_INFO
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../constant-values.html#com.badlogic.gdx.Application.LOG_INFO">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="LOG_ERROR">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>LOG_ERROR
</h4>
<pre>static final
int LOG_ERROR
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../constant-values.html#com.badlogic.gdx.Application.LOG_ERROR">Constant Field Values
</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail
</h3>
<a name="getApplicationListener()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getApplicationListener
</h4>
<pre><a href="../../../com/badlogic/gdx/ApplicationListener.html" title="interface in com.badlogic.gdx">ApplicationListener
</a> getApplicationListener()
</pre>
<dl><dt><span class="strong">Returns:
</span></dt><dd>the
<a href="../../../com/badlogic/gdx/ApplicationListener.html" title="interface in com.badlogic.gdx"><code>ApplicationListener
</code></a> instance
</dd></dl>
</li>
</ul>
<a name="getGraphics()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGraphics
</h4>
<pre><a href="../../../com/badlogic/gdx/Graphics.html" title="interface in com.badlogic.gdx">Graphics
</a> getGraphics()
</pre>
<dl><dt><span class="strong">Returns:
</span></dt><dd>the
<a href="../../../com/badlogic/gdx/Graphics.html" title="interface in com.badlogic.gdx"><code>Graphics
</code></a> instance
</dd></dl>
</li>
</ul>
<a name="getAudio()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAudio
</h4>
<pre><a href="../../../com/badlogic/gdx/Audio.html" title="interface in com.badlogic.gdx">Audio
</a> getAudio()
</pre>
<dl><dt><span class="strong">Returns:
</span></dt><dd>the
<a href="../../../com/badlogic/gdx/Audio.html" title="interface in com.badlogic.gdx"><code>Audio
</code></a> instance
</dd></dl>
</li>
</ul>
<a name="getInput()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInput
</h4>
<pre><a href="../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input
</a> getInput()
</pre>
<dl><dt><span class="strong">Returns:
</span></dt><dd>the
<a href="../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx"><code>Input
</code></a> instance
</dd></dl>
</li>
</ul>
<a name="getFiles()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFiles
</h4>
<pre><a href="../../../com/badlogic/gdx/Files.html" title="interface in com.badlogic.gdx">Files
</a> getFiles()
</pre>
<dl><dt><span class="strong">Returns:
</span></dt><dd>the
<a href="../../../com/badlogic/gdx/Files.html" title="interface in com.badlogic.gdx"><code>Files
</code></a> instance
</dd></dl>
</li>
</ul>
<a name="getNet()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNet
</h4>
<pre><a href="../../../com/badlogic/gdx/Net.html" title="interface in com.badlogic.gdx">Net
</a> getNet()
</pre>
<dl><dt><span class="strong">Returns:
</span></dt><dd>the
<a href="../../../com/badlogic/gdx/Net.html" title="interface in com.badlogic.gdx"><code>Net
</code></a> instance
</dd></dl>
</li>
</ul>
<a name="log(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>log
</h4>
<pre>void
log(java.lang.String
tag,
java.lang.String
message)
</pre>
<div class="block">Logs a message to the console or logcat
</div>
</li>
</ul>
<a name="log(java.lang.String, java.lang.String, java.lang.Throwable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>log
</h4>
<pre>void
log(java.lang.String
tag,
java.lang.String
message,
java.lang.Throwable
exception)
</pre>
<div class="block">Logs a message to the console or logcat
</div>
</li>
</ul>
<a name="error(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>error
</h4>
<pre>void
error(java.lang.String
tag,
java.lang.String
message)
</pre>
<div class="block">Logs an error message to the console or logcat
</div>
</li>
</ul>
<a name="error(java.lang.String, java.lang.String, java.lang.Throwable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>error
</h4>
<pre>void
error(java.lang.String
tag,
java.lang.String
message,
java.lang.Throwable
exception)
</pre>
<div class="block">Logs an error message to the console or logcat
</div>
</li>
</ul>
<a name="debug(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>debug
</h4>
<pre>void
debug(java.lang.String
tag,
java.lang.String
message)
</pre>
<div class="block">Logs a debug message to the console or logcat
</div>
</li>
</ul>
<a name="debug(java.lang.String, java.lang.String, java.lang.Throwable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>debug
</h4>
<pre>void
debug(java.lang.String
tag,
java.lang.String
message,
java.lang.Throwable
exception)
</pre>
<div class="block">Logs a debug message to the console or logcat
</div>
</li>
</ul>
<a name="setLogLevel(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLogLevel
</h4>
<pre>void
setLogLevel(int
logLevel)
</pre>
<div class="block">Sets the log level.
<a href="../../../com/badlogic/gdx/Application.html#LOG_NONE"><code>LOG_NONE
</code></a> will mute all log output.
<a href="../../../com/badlogic/gdx/Application.html#LOG_ERROR"><code>LOG_ERROR
</code></a> will only let error messages through.
<a href="../../../com/badlogic/gdx/Application.html#LOG_INFO"><code>LOG_INFO
</code></a> will let all non-debug messages through, and
<a href="../../../com/badlogic/gdx/Application.html#LOG_DEBUG"><code>LOG_DEBUG
</code></a> will let all messages through.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>logLevel
</code> -
<a href="../../../com/badlogic/gdx/Application.html#LOG_NONE"><code>LOG_NONE
</code></a>,
<a href="../../../com/badlogic/gdx/Application.html#LOG_ERROR"><code>LOG_ERROR
</code></a>,
<a href="../../../com/badlogic/gdx/Application.html#LOG_INFO"><code>LOG_INFO
</code></a>,
<a href="../../../com/badlogic/gdx/Application.html#LOG_DEBUG"><code>LOG_DEBUG
</code></a>.
</dd></dl>
</li>
</ul>
<a name="getLogLevel()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLogLevel
</h4>
<pre>int
getLogLevel()
</pre>
<div class="block">Gets the log level.
</div>
</li>
</ul>
<a name="getType()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getType
</h4>
<pre><a href="../../../com/badlogic/gdx/Application.ApplicationType.html" title="enum in com.badlogic.gdx">Application.ApplicationType
</a> getType()
</pre>
<dl><dt><span class="strong">Returns:
</span></dt><dd>what
<a href="../../../com/badlogic/gdx/Application.ApplicationType.html" title="enum in com.badlogic.gdx"><code>Application.ApplicationType
</code></a> this application has, e.g. Android or Desktop
</dd></dl>
</li>
</ul>
<a name="getVersion()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVersion
</h4>
<pre>int
getVersion()
</pre>
<dl><dt><span class="strong">Returns:
</span></dt><dd>the Android API level on Android, the major OS version on iOS (5, 6, 7, ..), or 0 on the desktop.
</dd></dl>
</li>
</ul>
<a name="getJavaHeap()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getJavaHeap
</h4>
<pre>long
getJavaHeap()
</pre>
<dl><dt><span class="strong">Returns:
</span></dt><dd>the Java heap memory use in bytes
</dd></dl>
</li>
</ul>
<a name="getNativeHeap()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNativeHeap
</h4>
<pre>long
getNativeHeap()
</pre>
<dl><dt><span class="strong">Returns:
</span></dt><dd>the Native heap memory use in bytes
</dd></dl>
</li>
</ul>
<a name="getPreferences(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPreferences
</h4>
<pre><a href="../../../com/badlogic/gdx/Preferences.html" title="interface in com.badlogic.gdx">Preferences
</a> getPreferences(java.lang.String
name)
</pre>
<div class="block">Returns the
<a href="../../../com/badlogic/gdx/Preferences.html" title="interface in com.badlogic.gdx"><code>Preferences
</code></a> instance of this Application. It can be used to store application settings across runs.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>name
</code> - the name of the preferences, must be useable as a file name.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>the preferences.
</dd></dl>
</li>
</ul>
<a name="getClipboard()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getClipboard
</h4>
<pre><a href="../../../com/badlogic/gdx/utils/Clipboard.html" title="interface in com.badlogic.gdx.utils">Clipboard
</a> getClipboard()
</pre>
</li>
</ul>
<a name="postRunnable(java.lang.Runnable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>postRunnable
</h4>
<pre>void
postRunnable(java.lang.Runnable
runnable)
</pre>
<div class="block">Posts a
<code>Runnable
</code> on the main loop thread.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>runnable
</code> - the runnable.
</dd></dl>
</li>
</ul>
<a name="exit()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exit
</h4>
<pre>void
exit()
</pre>
<div class="block">Schedule an exit from the application. On android, this will cause a call to pause() and dispose() some time in the future, it will not
immediately finish your application.
</div>
</li>
</ul>
<a name="addLifecycleListener(com.badlogic.gdx.LifecycleListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addLifecycleListener
</h4>
<pre>void
addLifecycleListener(
<a href="../../../com/badlogic/gdx/LifecycleListener.html" title="interface in com.badlogic.gdx">LifecycleListener
</a> listener)
</pre>
<div class="block">Adds a new
<a href="../../../com/badlogic/gdx/LifecycleListener.html" title="interface in com.badlogic.gdx"><code>LifecycleListener
</code></a> to the application. This can be
used by extensions to hook into the lifecycle more easily. The
<a href="../../../com/badlogic/gdx/ApplicationListener.html" title="interface in com.badlogic.gdx"><code>ApplicationListener
</code></a> methods are sufficient for application
level development.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>listener
</code> -
</dd></dl>
</li>
</ul>
<a name="removeLifecycleListener(com.badlogic.gdx.LifecycleListener)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>removeLifecycleListener
</h4>
<pre>void
removeLifecycleListener(
<a href="../../../com/badlogic/gdx/LifecycleListener.html" title="interface in com.badlogic.gdx">LifecycleListener
</a> listener)
</pre>
<div class="block">Removes the
<a href="../../../com/badlogic/gdx/LifecycleListener.html" title="interface in com.badlogic.gdx"><code>LifecycleListener
</code></a>.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>listener
</code> -
</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview
</a></li>
<li><a href="package-summary.html">Package
</a></li>
<li class="navBarCell1Rev">Class
</li>
<li><a href="class-use/Application.html">Use
</a></li>
<li><a href="package-tree.html">Tree
</a></li>
<li><a href="../../../deprecated-list.html">Deprecated
</a></li>
<li><a href="../../../index-all.html">Index
</a></li>
<li><a href="../../../help-doc.html">Help
</a></li>
</ul>
<div class="aboutLanguage"><em>libgdx API
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Class
</li>
<li><a href="../../../com/badlogic/gdx/Application.ApplicationType.html" title="enum in com.badlogic.gdx"><span class="strong">Next Class
</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/badlogic/gdx/Application.html" target="_top">Frames
</a></li>
<li><a href="Application.html" target="_top">No Frames
</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes
</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:
</li>
<li><a href="#nested_class_summary">Nested
</a> |
</li>
<li><a href="#field_summary">Field
</a> |
</li>
<li>Constr
|
</li>
<li><a href="#method_summary">Method
</a></li>
</ul>
<ul class="subNavList">
<li>Detail:
</li>
<li><a href="#field_detail">Field
</a> |
</li>
<li>Constr
|
</li>
<li><a href="#method_detail">Method
</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>
<div style="font-size:9pt"><i>
Copyright
© 2010-2013 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
</i></div>
</small></p>
</body>
</html>