|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.backends.android.AndroidApplicationConfiguration
public class AndroidApplicationConfiguration
Class defining the configuration of an AndroidApplication
. Allows you to disable the use of the accelerometer to save
battery among other things.
Field Summary | |
---|---|
int |
a
number of bits per color channel |
int |
b
number of bits per color channel |
int |
depth
number of bits for depth and stencil buffer |
int |
g
number of bits per color channel |
boolean |
getTouchEventsForLiveWallpaper
if the app is a livewallpaper, whether it should get full touch events |
boolean |
hideStatusBar
hide status bar buttons on Android 4.x and higher (API 14+). |
int |
maxSimultaneousSounds
the maximum number of Sound instances that can be played simultaneously, sets the corresponding SoundPool
constructor argument. |
int |
numSamples
number of samples for CSAA/MSAA, 2 is a good value |
int |
r
number of bits per color channel |
ResolutionStrategy |
resolutionStrategy
the ResolutionStrategy . |
int |
stencil
number of bits for depth and stencil buffer |
int |
touchSleepTime
the time in milliseconds to sleep after each event in the touch handler, set this to 16ms to get rid of touch flooding on pre Android 2.0 devices. |
boolean |
useAccelerometer
whether to use the accelerometer. |
boolean |
useCompass
whether to use the compass. |
boolean |
useGL20
whether to use OpenGL ES 2.0 or not. |
boolean |
useWakelock
whether to use a WakeLock or not. |
Constructor Summary | |
---|---|
AndroidApplicationConfiguration()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean useGL20
public int r
public int g
public int b
public int a
public int depth
public int stencil
public int numSamples
public boolean useAccelerometer
public boolean useCompass
public int touchSleepTime
public boolean useWakelock
WakeLock
or not. In case this is true you have to add the permission "android.permission.WAKE_LOCK"
to your manifest file. default: false
public boolean hideStatusBar
public int maxSimultaneousSounds
Sound
instances that can be played simultaneously, sets the corresponding SoundPool
constructor argument.
public ResolutionStrategy resolutionStrategy
ResolutionStrategy
. default: FillResolutionStrategy
public boolean getTouchEventsForLiveWallpaper
Constructor Detail |
---|
public AndroidApplicationConfiguration()
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |