mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
docs(all): standardizes and adds return types, also some param fixes
This commit is contained in:
@@ -56,7 +56,7 @@ export class TouchID {
|
||||
/**
|
||||
* Checks Whether TouchID is available or not.
|
||||
*
|
||||
* @return {Promise} Returns a Promise that resolves if yes, rejects if no.
|
||||
* @returns {Promise<any>} Returns a Promise that resolves if yes, rejects if no.
|
||||
*/
|
||||
@Cordova()
|
||||
static isAvailable(): Promise<any> { return; }
|
||||
@@ -65,7 +65,7 @@ export class TouchID {
|
||||
* Show TouchID dialog and wait for a fingerprint scan. If user taps 'Enter Password' button, brings up standard system passcode screen.
|
||||
*
|
||||
* @param {string} message The message to display
|
||||
* @return {Promise} Returns a Promise the resolves if the fingerprint scan was successful, rejects with an error code (see above).
|
||||
* @returns {Promise<any>} Returns a Promise the resolves if the fingerprint scan was successful, rejects with an error code (see above).
|
||||
*/
|
||||
@Cordova()
|
||||
static verifyFingerprint(message: string): Promise<any> { return; }
|
||||
@@ -74,7 +74,7 @@ export class TouchID {
|
||||
* Show TouchID dialog and wait for a fingerprint scan. If user taps 'Enter Password' button, rejects with code '-3' (see above).
|
||||
*
|
||||
* @param {string} message The message to display
|
||||
* @return {Promise} Returns a Promise the resolves if the fingerprint scan was successful, rejects with an error code (see above).
|
||||
* @returns {Promise<any>} Returns a Promise the resolves if the fingerprint scan was successful, rejects with an error code (see above).
|
||||
*/
|
||||
@Cordova()
|
||||
static verifyFingerprintWithCustomPasswordFallback(message: string): Promise<any> { return; }
|
||||
@@ -84,7 +84,7 @@ export class TouchID {
|
||||
*
|
||||
* @param {string} message The message to display
|
||||
* @param {string} enterPasswordLabel Custom text for the 'Enter Password' button
|
||||
* @return {Promise} Returns a Promise the resolves if the fingerprint scan was successful, rejects with an error code (see above).
|
||||
* @returns {Promise<any>} Returns a Promise the resolves if the fingerprint scan was successful, rejects with an error code (see above).
|
||||
*/
|
||||
@Cordova()
|
||||
static verifyFingerprintWithCustomPasswordFallbackAndEnterPasswordLabel(message: string, enterPasswordLabel: string): Promise<any> { return; }
|
||||
|
||||
Reference in New Issue
Block a user