public class AndroidApplicationConfiguration extends 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 |
useGL30
Deprecated.
this option is currently experimental and not yet fully supported, expect issues.
|
boolean |
useGLSurfaceView20API18
whether to use
GLSurfaceView20API18 in place of the classic
GLSurfaceView20 on Android API 10 and lower. |
boolean |
useGyroscope
whether to use the gyroscope.
|
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 useGyroscope
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: FillResolutionStrategypublic boolean getTouchEventsForLiveWallpaper
public boolean useImmersiveMode
@Deprecated public boolean useGL30
Gdx.gl30 can be used to access its functionality. Requires at least Android 4.3 (API level 18).public boolean useGLSurfaceView20API18
GLSurfaceView20API18 in place of the classic
GLSurfaceView20 on Android API 10 and lower.
In case this is true GLSurfaceView20API18 will be used.
This implementation properly supports attach to and detach from window. default: falseCopyright © 2016. All rights reserved.