Vibration
Vibrates the device
Premier Version Available

Featuring regular release cycles, security and bug fixes, and guaranteed SLAs.
インストール
Ionic Native Enterprise はIonic Teamが完全にサポートしメンテナンスしているプラグインを利用できます。 詳しくみる か、 エンタープライズプラグインに興味があれば 連絡ください
サポートしているプラットフォーム
- Android
- iOS
- Windows
利用方法
React
Angular
import { Vibration } from '@ionic-native/vibration/ngx';
constructor(private vibration: Vibration) { }
...
// Vibrate the device for a second
// Duration is ignored on iOS.
this.vibration.vibrate(1000);
// Vibrate 2 seconds
// Pause for 1 second
// Vibrate for 2 seconds
// Patterns work on Android and Windows only
this.vibration.vibrate([2000,1000,2000]);
// Stop any current vibrations immediately
// Works on Android and Windows only
this.vibration.vibrate(0);