返回介绍

Ionic4 Pin Check插件-Pin Check

发布于 2019-11-23 07:41:01 字数 1573 浏览 1021 评论 0 收藏 0

This plugin is for use with Apache Cordova and allows your application to check whether pin/keyguard or passcode is setup on iOS and Android phones.

Requires Cordova plugin: cordova-plugin-pincheck. For more info, please see the PinCheck plugin docs.

https://github.com/shangyilim/cordova-plugin-pincheck

Ionic Pin Check插件的安装(Installation)

ionic cordova plugin add cordova-plugin-pincheck npm install @ionic-native/pin-check 
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/pin-check 

Ionic Pin Check插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic Pin Check插件的用法(Usage)

import { PinCheck } from '@ionic-native/pin-check/ngx';
import { Platform } from 'ionic-angular';

constructor(private pinCheck: PinCheck, private platform: Platform) { }

...

this.pinCheck.isPinSetup()
  .then(
    (success: string) =>  console.log("pin is setup.");,
    (error: string) => console.log("pin not setup.");
  );

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文