简体   繁体   English

iOS7 / iphone 5s主页按钮水龙头API

[英]iOS7/iphone 5s home button tap API

So with this new fingerprint thing you only need to tap the home button and hold your finger for a few moments to unlock your phone. 因此,有了这种新的指纹识别功能,您只需点击主屏幕按钮并按住手指片刻即可解锁手机。 I was wondering if there's an API that lets us make use of the "Tap" functionality. 我想知道是否有一个API可以让我们利用“点击”功能。

ie Let's say in my app, when the user taps the home button, my app does xyz. 即假设在我的应用程序中,当用户点击主屏幕按钮时,我的应用程序执行xyz。

Also, would it be possible for my app to read these taps when the screen is locked? 另外,当屏幕锁定时,我的应用程序是否可以读取这些水龙头?

NOTE: By tap I do not mean pressing the button, just a tap, like when we unlock the iPhone 5s with the fingerprint scan. 注意:轻按我并不是说要按下按钮,只是轻按一下,就像我们用指纹扫描解锁iPhone 5s一样。

I'm completely new to iOS development. 我是iOS开发的新手。 So referencing libraries with links etc and basic tutorials might make things a bit clearer for me. 因此,使用链接等引用库以及基本教程可能会使我更清楚。

Thanks. 谢谢。

Nope. 不。 This API does not exist. 该API不存在。 File a feature request at http://bugreport.apple.com . http://bugreport.apple.com上提交功能请求。 I can't imagine that this will get implemented though, given the possibility of abuse. 鉴于存在滥用的可能性,我无法想象这将实现。

No there is no public API for the Touch ID sensor... yet. 尚无针对触摸ID传感器的公共API...。 And there may never be one. 而且可能永远不会有一个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM