[]Struct jni_android_sys::android::nfc::NfcAdapter

#[repr(transparent)]
pub struct 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]

getDefaultAdapter

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]

setBeamPushUris

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]

setBeamPushUrisCallback

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]

setNdefPushMessage

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]

setNdefPushMessageCallback

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]

setOnNdefPushCompleteCallback

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]

enableForegroundDispatch

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]

disableForegroundDispatch

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]

enableReaderMode

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]

disableReaderMode

Required features: "android-app-Activity"

pub fn invokeBeam<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>
) -> Result<bool, Local<'env, Throwable>>
[src]

invokeBeam

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]

Deprecated

enableForegroundNdefPush

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]

Deprecated

disableForegroundNdefPush

Required features: "android-app-Activity"

pub fn isNdefPushEnabled<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

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]

ignore

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]

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]

getClass

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]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

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]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

type Target = Object

The resulting type after dereferencing.

impl JniType for NfcAdapter

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.