mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
docs(touchid): add docs
This commit is contained in:
parent
f91cb04585
commit
cbfc7968ed
@ -23,14 +23,27 @@ import {Plugin, Cordova} from './plugin';
|
|||||||
* ```js
|
* ```js
|
||||||
* import {TouchID} from 'ionic-native';
|
* import {TouchID} from 'ionic-native';
|
||||||
*
|
*
|
||||||
|
* ...
|
||||||
*
|
*
|
||||||
|
* TouchID.isAvailable()
|
||||||
|
* .then(
|
||||||
|
* res => console.log("TouchID is available!"),
|
||||||
|
* err => console.error("TouchID isn't available", err)
|
||||||
|
* );
|
||||||
|
*
|
||||||
|
* TouchID.verifyFingerprint('Scan your fingerprint please')
|
||||||
|
* .then(
|
||||||
|
* res => console.log("Ok", res),
|
||||||
|
* err => console.error("Error", err)
|
||||||
|
* );
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
@Plugin({
|
@Plugin({
|
||||||
plugin: 'cordova-plugin-touch-id',
|
plugin: 'cordova-plugin-touch-id',
|
||||||
pluginRef: 'plugins.touchid',
|
pluginRef: 'plugins.touchid',
|
||||||
repo: 'https://github.com/EddyVerbruggen/cordova-plugin-touch-id'
|
repo: 'https://github.com/EddyVerbruggen/cordova-plugin-touch-id',
|
||||||
|
platforms: ['iOS']
|
||||||
})
|
})
|
||||||
export class TouchID {
|
export class TouchID {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user