[−]Struct jni_android_sys::android::nfc::NfcAdapter
public final class NfcAdapter
Required feature: "android-nfc-NfcAdapter"
Methods
impl NfcAdapter
pub fn getDefaultAdapter<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<Option<Local<'env, NfcAdapter>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<Option<Local<'env, NfcAdapter>>, Local<'env, Throwable>>
Required features: "android-content-Context", "android-nfc-NfcAdapter"
pub fn isEnabled<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn setBeamPushUris<'env>(
&'env self,
arg0: impl Into<Option<&'env ObjectArray<Uri, Throwable>>>,
arg1: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ObjectArray<Uri, Throwable>>>,
arg1: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity", "android-net-Uri"
pub fn setBeamPushUrisCallback<'env>(
&'env self,
arg0: impl Into<Option<&'env NfcAdapter_CreateBeamUrisCallback>>,
arg1: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env NfcAdapter_CreateBeamUrisCallback>>,
arg1: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity", "android-nfc-NfcAdapter_CreateBeamUrisCallback"
pub fn setNdefPushMessage<'env>(
&'env self,
arg0: impl Into<Option<&'env NdefMessage>>,
arg1: impl Into<Option<&'env Activity>>,
arg2: impl Into<Option<&'env ObjectArray<Activity, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env NdefMessage>>,
arg1: impl Into<Option<&'env Activity>>,
arg2: impl Into<Option<&'env ObjectArray<Activity, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity", "android-nfc-NdefMessage"
pub fn setNdefPushMessageCallback<'env>(
&'env self,
arg0: impl Into<Option<&'env NfcAdapter_CreateNdefMessageCallback>>,
arg1: impl Into<Option<&'env Activity>>,
arg2: impl Into<Option<&'env ObjectArray<Activity, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env NfcAdapter_CreateNdefMessageCallback>>,
arg1: impl Into<Option<&'env Activity>>,
arg2: impl Into<Option<&'env ObjectArray<Activity, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity", "android-nfc-NfcAdapter_CreateNdefMessageCallback"
pub fn setOnNdefPushCompleteCallback<'env>(
&'env self,
arg0: impl Into<Option<&'env NfcAdapter_OnNdefPushCompleteCallback>>,
arg1: impl Into<Option<&'env Activity>>,
arg2: impl Into<Option<&'env ObjectArray<Activity, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env NfcAdapter_OnNdefPushCompleteCallback>>,
arg1: impl Into<Option<&'env Activity>>,
arg2: impl Into<Option<&'env ObjectArray<Activity, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity", "android-nfc-NfcAdapter_OnNdefPushCompleteCallback"
pub fn enableForegroundDispatch<'env>(
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env PendingIntent>>,
arg2: impl Into<Option<&'env ObjectArray<IntentFilter, Throwable>>>,
arg3: impl Into<Option<&'env ObjectArray<ObjectArray<String, Throwable>, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env PendingIntent>>,
arg2: impl Into<Option<&'env ObjectArray<IntentFilter, Throwable>>>,
arg3: impl Into<Option<&'env ObjectArray<ObjectArray<String, Throwable>, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity", "android-app-PendingIntent", "android-content-IntentFilter", "java-lang-String"
pub fn disableForegroundDispatch<'env>(
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity"
pub fn enableReaderMode<'env>(
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env NfcAdapter_ReaderCallback>>,
arg2: i32,
arg3: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env NfcAdapter_ReaderCallback>>,
arg2: i32,
arg3: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity", "android-nfc-NfcAdapter_ReaderCallback", "android-os-Bundle"
pub fn disableReaderMode<'env>(
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity"
pub fn invokeBeam<'env>(
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-app-Activity"
pub fn enableForegroundNdefPush<'env>(
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env NdefMessage>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env NdefMessage>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity", "android-nfc-NdefMessage"
pub fn disableForegroundNdefPush<'env>(
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity"
pub fn isNdefPushEnabled<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn ignore<'env>(
&'env self,
arg0: impl Into<Option<&'env Tag>>,
arg1: i32,
arg2: impl Into<Option<&'env NfcAdapter_OnTagRemovedListener>>,
arg3: impl Into<Option<&'env Handler>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Tag>>,
arg1: i32,
arg2: impl Into<Option<&'env NfcAdapter_OnTagRemovedListener>>,
arg3: impl Into<Option<&'env Handler>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-nfc-NfcAdapter_OnTagRemovedListener", "android-nfc-Tag", "android-os-Handler"
pub const ACTION_ADAPTER_STATE_CHANGED: &'static str
[src]
public static final ACTION_ADAPTER_STATE_CHANGED
pub const ACTION_NDEF_DISCOVERED: &'static str
[src]
public static final ACTION_NDEF_DISCOVERED
pub const ACTION_TAG_DISCOVERED: &'static str
[src]
public static final ACTION_TAG_DISCOVERED
pub const ACTION_TECH_DISCOVERED: &'static str
[src]
public static final ACTION_TECH_DISCOVERED
pub const ACTION_TRANSACTION_DETECTED: &'static str
[src]
public static final ACTION_TRANSACTION_DETECTED
pub const EXTRA_ADAPTER_STATE: &'static str
[src]
public static final EXTRA_ADAPTER_STATE
pub const EXTRA_AID: &'static str
[src]
public static final EXTRA_AID
pub const EXTRA_DATA: &'static str
[src]
public static final EXTRA_DATA
pub const EXTRA_ID: &'static str
[src]
public static final EXTRA_ID
pub const EXTRA_NDEF_MESSAGES: &'static str
[src]
public static final EXTRA_NDEF_MESSAGES
pub const EXTRA_READER_PRESENCE_CHECK_DELAY: &'static str
[src]
public static final EXTRA_READER_PRESENCE_CHECK_DELAY
pub const EXTRA_SECURE_ELEMENT_NAME: &'static str
[src]
public static final EXTRA_SECURE_ELEMENT_NAME
pub const EXTRA_TAG: &'static str
[src]
public static final EXTRA_TAG
pub const FLAG_READER_NFC_A: i32
[src]
public static final FLAG_READER_NFC_A
pub const FLAG_READER_NFC_B: i32
[src]
public static final FLAG_READER_NFC_B
pub const FLAG_READER_NFC_BARCODE: i32
[src]
public static final FLAG_READER_NFC_BARCODE
pub const FLAG_READER_NFC_F: i32
[src]
public static final FLAG_READER_NFC_F
pub const FLAG_READER_NFC_V: i32
[src]
public static final FLAG_READER_NFC_V
pub const FLAG_READER_NO_PLATFORM_SOUNDS: i32
[src]
public static final FLAG_READER_NO_PLATFORM_SOUNDS
pub const FLAG_READER_SKIP_NDEF_CHECK: i32
[src]
public static final FLAG_READER_SKIP_NDEF_CHECK
pub const STATE_OFF: i32
[src]
public static final STATE_OFF
pub const STATE_ON: i32
[src]
public static final STATE_ON
pub const STATE_TURNING_OFF: i32
[src]
public static final STATE_TURNING_OFF
pub const STATE_TURNING_ON: i32
[src]
public static final STATE_TURNING_ON
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for NfcAdapter
impl AsValidJObjectAndEnv for NfcAdapter
impl Deref for NfcAdapter
impl JniType for NfcAdapter
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for NfcAdapter
impl !Send for NfcAdapter
impl !Sync for NfcAdapter
impl Unpin for NfcAdapter
impl UnwindSafe for NfcAdapter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,