IT. Expert System.

Android Reference

NfcAdapter.CreateNdefMessageCallback


android.nfc

Interface NfcAdapter.CreateNdefMessageCallback

  • Enclosing class:
    NfcAdapter


    public static interface NfcAdapter.CreateNdefMessageCallback
    A callback to be invoked when another NFC device capable of NDEF push (Android Beam) is within range.

    Implement this interface and pass it to setNdefPushMessageCallback() in order to create an NdefMessage at the moment that another device is within range for NFC. Using this callback allows you to create a message with data that might vary based on the content currently visible to the user. Alternatively, you can call setNdefPushMessage() if the NdefMessage always contains the same data.

    • Method Detail

      • createNdefMessage

        NdefMessage createNdefMessage(NfcEvent event)
        Called to provide a NdefMessage to push.

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

        Called when this device is in range of another device that might support NDEF push. It allows the application to create the NDEF message only when it is required.

        NDEF push cannot occur until this method returns, so do not block for too long.

        The Android operating system will usually show a system UI on top of your activity during this time, so do not try to request input from the user to complete the callback, or provide custom NDEF push UI. The user probably will not see it.

        Parameters:
        event - NfcEvent with the NfcEvent.nfcAdapter field set
        Returns:
        NDEF message to push, or null to not provide a message


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 567 / 158669934. Delta: 0.02797 с