Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • activateOrientationSensor(): void
  • Activate the orientation sensor

    Returns void

  • deactivateOrientationSensor(): void
  • Deactivate the orientation sensor

    Returns void

  • getOrientationAbsolute(): number
  • Get the value of the device orientation's absolute as a number

    Returns number

    The device orientation's absolute value

  • getOrientationAlpha(): number
  • Get the value of the device orientation's alpha as a number (Range: 0 to 360)

    Returns number

    The device orientation's alpha value

  • getOrientationBeta(): number
  • Get the value of the device orientation's beta as a number (Range: -180 to 180)

    Returns number

    The device orientation's beta value

  • getOrientationGamma(): number
  • Get the value of the device orientation's gamma as a number (Range: -90 to 90)

    Returns number

    The device orientation's gamma value

  • isActive(): boolean
  • Check if the orientation sensor is currently active

    Returns boolean

    The activation state of the orientation sensor

Generated using TypeDoc