Pin Dialog

Improve this doc

$ ionic plugin add cordova-plugin-pin-dialog

Repo: https://github.com/Paldom/PinDialog

Usage

import { PinDialog } from 'ionic-native';


PinDialog.prompt('Enter your PIN', 'Verify PIN', ['OK', 'Cancel'])
  .then(
    (result: any) => {
      if (result.buttonIndex == 1) console.log('User clicked OK, value is: ', result.input1);
      else if(result.buttonIndex == 2) console.log('User cancelled');
    }
  );

Static Members

prompt(message, title, buttons)

Show pin dialog

Param Type Details
message string

Message to show the user

title string

Title of the dialog

buttons string[]

Buttons to show

Returns: Promise<{ buttonIndex: number, input1: string }>

API

Native

General