Class AndroidApplicationConfiguration

java.lang.Object
arc.backend.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.
  • Field Details

    • 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: false
    • useGyroscope

      public boolean useGyroscope
      whether to use the gyroscope. default: false
    • useCompass

      public boolean useCompass
      Whether to use the compass. The compass enables Input.getRotationMatrix(float[]), if useAccelerometer is also true.

      If useRotationVectorSensor is true and the rotation vector sensor is available, the compass will not be used.

      Default: false

    • useRotationVectorSensor

      public boolean useRotationVectorSensor
      Whether to use Android's rotation vector software sensor, which provides cleaner data than that of useCompass for Input.getRotationMatrix(float[]) The rotation vector sensor uses a combination of physical sensors, and it pre-filters and smoothes the data. If true, useAccelerometer is not required to enable rotation data.

      If true and the rotation vector sensor is available, the compass will not be used, regardless of useCompass.

      Default: false

    • sensorDelay

      public int sensorDelay
      The requested sensor sampling rate in microseconds or one of the SENSOR_DELAY_* constants in SensorManager.

      Default: SensorManager.SENSOR_DELAY_GAME (20 ms updates).

    • useWakelock

      public boolean useWakelock
      whether to keep the screen on and at full brightness or not while running the application. default: false. Uses FLAG_KEEP_SCREEN_ON under the hood.
    • hideStatusBar

      public boolean hideStatusBar
      hide status bar buttons on Android 4.x and higher (API 14+). default: true
    • disableAudio

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

      public ResolutionStrategy resolutionStrategy
    • useImmersiveMode

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

      public boolean useGL30
      Whether to enable OpenGL ES 3 if supported. If not supported it will fall-back to OpenGL ES 2.0. When GL ES 3* is enabled, Core.gl30 can be used to access its functionality. Requires at least Android 4.3 (API level 18).
  • Constructor Details

    • AndroidApplicationConfiguration

      public AndroidApplicationConfiguration()