public class AndroidApplicationConfiguration
extends java.lang.Object
AndroidApplication
. Allows you to disable the use of the accelerometer to save
battery among other things.Modifier and Type | Field and Description |
---|---|
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
|
boolean |
disableAudio
whether to disable Android audio support.
|
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 |
useGLSurfaceView20API18
whether to use
com.badlogic.gdx.backends.android.surfaceview.GLSurfaceView20API18 in place of the classic
com.badlogic.gdx.backends.android.surfaceview.GLSurfaceView20 on Android API 10 and lower. |
boolean |
useImmersiveMode
set this to true to enable Android 4.4 KitKat's 'Immersive mode'
|
boolean |
useWakelock
whether to keep the screen on and at full brightness or not while running the application.
|
Constructor and Description |
---|
AndroidApplicationConfiguration() |
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
public boolean hideStatusBar
public boolean disableAudio
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
public boolean useImmersiveMode
public boolean useGLSurfaceView20API18
com.badlogic.gdx.backends.android.surfaceview.GLSurfaceView20API18
in place of the classic
com.badlogic.gdx.backends.android.surfaceview.GLSurfaceView20
on Android API 10 and lower.
In case this is true com.badlogic.gdx.backends.android.surfaceview.GLSurfaceView20API18
will be used.
This implementation properly supports attach to and detach from window. default: false