4package org.qtproject.qt.android.nfc;
6import android.content.BroadcastReceiver;
7import android.content.Context;
8import android.content.Intent;
9import android.content.IntentFilter;
10import android.nfc.NfcAdapter;
14 final private long qtObject;
15 final private Context qtContext;
21 IntentFilter
filter =
new IntentFilter(NfcAdapter.ACTION_ADAPTER_STATE_CHANGED);
22 qtContext.registerReceiver(
this,
filter);
27 qtContext.unregisterReceiver(
this);
32 final int state = intent.getIntExtra(NfcAdapter.EXTRA_ADAPTER_STATE, NfcAdapter.STATE_OFF);
void onReceive(Context context, Intent intent)
void unregisterReceiver()
native void jniOnReceive(long qtObject, int state)
QtNfcBroadcastReceiver(long obj, Context context)
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter