import { vibrator } from '@kit.SensorServiceKit'



export class Vibration{
  // 开启震动
  static startVibration() {
    vibrator.startVibration({ type: 'time', duration: 200 }, { usage: 'touch' })
  }
  // 关闭震动
  static stopVibration() {
    vibrator.stopVibration()
  }
}




