Package | org.zengrong.ane.tool |
Class | public class VibratorCont |
Inheritance | VibratorCont ToolBase flash.events.EventDispatcher |
Method | Defined By | ||
---|---|---|---|
VibratorCont($context:ExtensionContext) | VibratorCont | ||
dispose():void | ToolBase | ||
vibrate($ms:uint = 50):void
振动
| VibratorCont | ||
vibrateCancel():void
取消振动
| VibratorCont | ||
vibrateRepeat($pattern:Vector.<int>, $repeat:int = -1):void
重复振动
| VibratorCont |
VibratorCont | () | Constructor |
public function VibratorCont($context:ExtensionContext)
$context:ExtensionContext |
vibrate | () | method |
public function vibrate($ms:uint = 50):void
振动
Parameters
$ms:uint (default = 50 ) — 振动的毫秒数
|
vibrateCancel | () | method |
public function vibrateCancel():void
取消振动
vibrateRepeat | () | method |
public function vibrateRepeat($pattern:Vector.<int>, $repeat:int = -1):void
重复振动
Parameters
$pattern:Vector.<int> — 振动的节奏。数组的第一个元素代表振动毫秒,第二个代表停止毫秒,依此类推
| |
$repeat:int (default = -1 ) — 重复次数,-1为不重复
|