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
|
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 |
useGLSurfaceViewAPI18
whether to use
GLSurfaceViewAPI18 in place of the classic GLSurfaceViewCupcake on Android API 10 and lower. |
boolean |
useWakelock
whether to use a
WakeLock or not. |
Constructor and Description |
---|
AndroidApplicationConfiguration() |
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: falsepublic 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
public boolean useGLSurfaceViewAPI18
GLSurfaceViewAPI18
in place of the classic GLSurfaceViewCupcake
on Android API 10 and lower.
In case this is true GLSurfaceViewAPI18
will be used. This implementation properly supports attach to and detach
from window. default: false