Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个 android 应用程序,我想知道在发送消息时如何获取事件?
目前它发送和接收 NDEF 消息非常好。
但是,我想在数据成功发送时捕获事件,我的意思是当用户按下他们的屏幕以确认传输时。
你有什么线索吗?
看起来您可以使用onNdefPushComplete回调。
从文档:
类概述 当系统成功将您的 NdefMessage 传递到另一个设备时要调用的回调。
类概述
当系统成功将您的 NdefMessage 传递到另一个设备时要调用的回调。