加速度传感器用来测量设备包括重力加速度在内的加速度。下面的代码说明了如何获取一个默认加速度传感器的对象。
An acceleration sensor measuresthe acceleration applied to the device, including the force of gravity. Thefollowing code shows you how to get an instance of the default accelerationsensor.
加速度传感器用来测量设备包括重力加速度在内的加速度。下面的代码说明了如何获取一个默认加速度传感器的对象。
An acceleration sensor measuresthe acceleration applied to the device, including the force of gravity. Thefollowing code shows you how to get an instance of the default accelerationsensor.
应用推荐