Socket
Socket
Sign inDemoInstall

tobostudio.cordova-check-passcode-status

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tobostudio.cordova-check-passcode-status

使用方法


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

使用方法

cordova.plugins.checkPasscode.checkPasscode(function( _status ){
    var PassCodeStatus;
    switch (_status){
        case "true":
            PassCodeStatus = true;
            break
        case "false":
            PassCodeStatus = false;
            break;
        default :
            PassCodeStatus = false;
            break
    }
    alert( "passcode status => " + PassCodeStatus )
})

返回的值为

true [string] 已开启passcode false [string] 关闭了 passcode Unknown [string] 无法检测是否开启了 passcode

java source code https://gist.github.com/doridori/54c32c66ef4f4e34300f

ios source code https://github.com/liamnichols/UIDevice-PasscodeStatus

FAQs

Last updated on 17 May 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc