mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
docs(vibrate): modify docs
This commit is contained in:
parent
c620e18491
commit
f91cb04585
@ -25,17 +25,18 @@ import {Plugin, Cordova} from './plugin';
|
||||
@Plugin({
|
||||
plugin: 'cordova-plugin-vibration',
|
||||
pluginRef: 'navigator',
|
||||
repo: 'https://github.com/apache/cordova-plugin-vibration'
|
||||
repo: 'https://github.com/apache/cordova-plugin-vibration',
|
||||
platforms: ['Android', 'iOS', 'Windows 8.1 Phone', 'Windows 8.1', 'Windows 10']
|
||||
})
|
||||
export class Vibration {
|
||||
|
||||
/**
|
||||
* Vibrates the device for given amount of time.
|
||||
* @param time {Number|Array<Number>} Milliseconds to vibrate the device. If passed an array of numbers, it will define a vibration pattern. Pass 0 to stop any vibration immediately.
|
||||
* @param time {number|Array<number>} Milliseconds to vibrate the device. If passed an array of numbers, it will define a vibration pattern. Pass 0 to stop any vibration immediately.
|
||||
*/
|
||||
@Cordova({
|
||||
sync: true
|
||||
})
|
||||
static vibrate(time: any) {}
|
||||
static vibrate(time: number|Array<number>) {}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user