Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Device

设备类

Hierarchy

  • Device

Index

Constructors

constructor

Accessors

Static isSupportAccelerationIncludingGravity

  • get isSupportAccelerationIncludingGravity(): Promise<boolean>
  • 是否支持重力加速度感应器

    Returns Promise<boolean>

Static isSupportRotationRate

  • get isSupportRotationRate(): Promise<boolean>
  • 是否支持陀螺仪

    Returns Promise<boolean>

Static isSupportShake

  • get isSupportShake(): Promise<boolean>
  • 是否支持摇一摇

    Returns Promise<boolean>

Static isSupportVibrate

  • get isSupportVibrate(): Promise<boolean>
  • 是否支持振动

    Returns Promise<boolean>

Static windowHeight

  • get windowHeight(): number
  • 窗口高

    Returns number

Static windowWidth

  • get windowWidth(): number
  • 窗口宽

    Returns number