↳ Constants

AirConsole

new AirConsole(opts) → {AirConsoleObject}

Your gateway object to AirConsole. There are getter and setter functions for all properties. Do not access properties of this object directly.
Parameters:
Name Type Description
opts AirConsole~Config Constructor config, see bellow.
Source:
Returns:
The AirConsole object.
Type
AirConsoleObject

Members

(static, constant) ORIENTATION_LANDSCAPE :string

The landscape orientation.
Type:
  • string
Source:

(static, constant) ORIENTATION_PORTRAIT :string

The portrait orientation.
Type:
  • string
Source:

(static, constant) SCREEN :number

The device ID of the game screen.
Type:
  • number
Source:

(static, constant) VIBRATE :Object

Collection of vibration pattern constants
Type:
  • Object
Properties:
Name Type Description
TYPE.COMPOSITION string Composition vibration interface identifier. Using the composition interface the value of the VibrationOptions expects an array of CompositionVibrationData with at least one entry.
PRIMITIVE.CLICK string Primitive identifier for a click vibration pattern used in CompositionVibrationData
PRIMITIVE.THUD string Primitive identifier for a thud vibration pattern used in CompositionVibrationData
PRIMITIVE.SPIN string Primitive identifier for a spin vibration pattern used in CompositionVibrationData
PRIMITIVE.QUICK_RISE string Primitive identifier for a quick rise vibration pattern used in CompositionVibrationData
PRIMITIVE.SLOW_RISE string Primitive identifier for a slow rise vibration pattern used in CompositionVibrationData
PRIMITIVE.QUICK_FALL string Primitive identifier for a quick fall vibration pattern used in CompositionVibrationData
PRIMITIVE.TICK string Primitive identifier for a tick vibration pattern used in CompositionVibrationData
PRIMITIVE.LOW_TICK string Primitive identifier for low tick vibration pattern used in CompositionVibrationData
Source: