软件编程
位置:首页>> 软件编程>> Android编程>> android 触屏的震动响应接口调用方法

android 触屏的震动响应接口调用方法

  发布时间:2021-08-04 08:33:34 

标签:触屏震动,响应接口

调用native 方法来开启和关闭vibrator:
native static void vibratorOn(long milliseconds);
native static void vibratorOff();
调用方法如下:
VibratorService.vibratorOn()

0
投稿

猜你喜欢

手机版 软件编程 asp之家 www.aspxhome.com