public static interface NfcAdapter.OnNdefPushCompleteCallback

android.nfc.NfcAdapter.OnNdefPushCompleteCallback



This interface was deprecated in API level 29.
this feature is removed. File sharing can work using other technology like Bluetooth.

A callback to be invoked when the system successfully delivers your NdefMessage to another device.

Summary

Public methods

abstract void onNdefPushComplete(NfcEvent event)

Called on successful NDEF push.

Public methods

onNdefPushComplete

public abstract void onNdefPushComplete (NfcEvent event)

Called on successful NDEF push.

This callback is usually made on a binder thread (not the UI thread).

Parameters
event NfcEvent: NfcEvent with the NfcEvent.nfcAdapter field set

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.