com.badlogic.gdx.backends.android
Class AndroidApplicationConfiguration

java.lang.Object
  extended by com.badlogic.gdx.backends.android.AndroidApplicationConfiguration

public class AndroidApplicationConfiguration
extends Object

Class defining the configuration of an AndroidApplication. Allows you to disable the use of the accelerometer to save battery among other things.

Author:
mzechner

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
 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 GLSurfaceView20API18 in place of the classic 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 Summary
AndroidApplicationConfiguration()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

r

public int r
number of bits per color channel


g

public int g
number of bits per color channel


b

public int b
number of bits per color channel


a

public int a
number of bits per color channel


depth

public int depth
number of bits for depth and stencil buffer


stencil

public int stencil
number of bits for depth and stencil buffer


numSamples

public int numSamples
number of samples for CSAA/MSAA, 2 is a good value


useAccelerometer

public boolean useAccelerometer
whether to use the accelerometer. default: true


useCompass

public boolean useCompass
whether to use the compass. default: true


touchSleepTime

public 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. default: 0


useWakelock

public boolean useWakelock
whether to keep the screen on and at full brightness or not while running the application. default: false


hideStatusBar

public boolean hideStatusBar
hide status bar buttons on Android 4.x and higher (API 14+). Doesn't work if "android:targetSdkVersion" less 11 or if API less 14. default: false


disableAudio

public boolean disableAudio
whether to disable Android audio support. default: false


maxSimultaneousSounds

public int maxSimultaneousSounds
the maximum number of Sound instances that can be played simultaneously, sets the corresponding SoundPool constructor argument.


resolutionStrategy

public ResolutionStrategy resolutionStrategy
the ResolutionStrategy. default: FillResolutionStrategy


getTouchEventsForLiveWallpaper

public boolean getTouchEventsForLiveWallpaper
if the app is a livewallpaper, whether it should get full touch events


useImmersiveMode

public boolean useImmersiveMode
set this to true to enable Android 4.4 KitKat's 'Immersive mode'


useGLSurfaceView20API18

public boolean useGLSurfaceView20API18
whether to use 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: false

Constructor Detail

AndroidApplicationConfiguration

public AndroidApplicationConfiguration()


Copyright © 2014. All Rights Reserved.