次の方法で共有


NfcAdapter.Ignore Method

Definition

Signals that you are no longer interested in communicating with an NFC tag for as long as it remains in range.

[Android.Runtime.Register("ignore", "(Landroid/nfc/Tag;ILandroid/nfc/NfcAdapter$OnTagRemovedListener;Landroid/os/Handler;)Z", "", ApiSince=24)]
public bool Ignore (Android.Nfc.Tag? tag, int debounceMs, Android.Nfc.NfcAdapter.IOnTagRemovedListener? tagRemovedListener, Android.OS.Handler? handler);
[<Android.Runtime.Register("ignore", "(Landroid/nfc/Tag;ILandroid/nfc/NfcAdapter$OnTagRemovedListener;Landroid/os/Handler;)Z", "", ApiSince=24)>]
member this.Ignore : Android.Nfc.Tag * int * Android.Nfc.NfcAdapter.IOnTagRemovedListener * Android.OS.Handler -> bool

Parameters

tag
Tag

the android.nfc.Tag Tag to ignore.

debounceMs
Int32

minimum amount of time the tag needs to be out of range before being dispatched again.

tagRemovedListener
NfcAdapter.IOnTagRemovedListener

listener to be called when the tag is removed from the field. Note that this will only be called if the tag has been out of range for at least debounceMs, or if another tag came into range before debounceMs. May be null in case you don't want a callback.

handler
Handler

the android.os.Handler Handler that will be used for delivering the callback. if the handler is null, then the thread used for delivering the callback is unspecified.

Returns

false if the tag couldn't be found (or has already gone out of range), true otherwise

Attributes

Remarks

Java documentation for android.nfc.NfcAdapter.ignore(android.nfc.Tag, int, android.nfc.OnTagRemovedListener, android.os.Handler).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to