mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +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({
|
||||||
plugin: 'cordova-plugin-vibration',
|
plugin: 'cordova-plugin-vibration',
|
||||||
pluginRef: 'navigator',
|
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 {
|
export class Vibration {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vibrates the device for given amount of time.
|
* 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({
|
@Cordova({
|
||||||
sync: true
|
sync: true
|
||||||
})
|
})
|
||||||
static vibrate(time: any) {}
|
static vibrate(time: number|Array<number>) {}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user