[]Struct jni_android_sys::android::bluetooth::le::BluetoothLeScanner

#[repr(transparent)]
pub struct BluetoothLeScanner(_);

public final class BluetoothLeScanner

Required feature: "android-bluetooth-le-BluetoothLeScanner"

Methods

impl BluetoothLeScanner

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

startScan

Required features: "android-bluetooth-le-ScanCallback"

pub fn startScan_List_ScanSettings_ScanCallback<'env>(
    &'env self,
    arg0: impl Into<Option<&'env List>>,
    arg1: impl Into<Option<&'env ScanSettings>>,
    arg2: impl Into<Option<&'env ScanCallback>>
) -> Result<(), Local<'env, Throwable>>
[src]

startScan

Required features: "android-bluetooth-le-ScanCallback", "android-bluetooth-le-ScanSettings", "java-util-List"

pub fn startScan_List_ScanSettings_PendingIntent<'env>(
    &'env self,
    arg0: impl Into<Option<&'env List>>,
    arg1: impl Into<Option<&'env ScanSettings>>,
    arg2: impl Into<Option<&'env PendingIntent>>
) -> Result<i32, Local<'env, Throwable>>
[src]

startScan

Required features: "android-app-PendingIntent", "android-bluetooth-le-ScanSettings", "java-util-List"

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

stopScan

Required features: "android-bluetooth-le-ScanCallback"

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

stopScan

Required features: "android-app-PendingIntent"

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

flushPendingScanResults

Required features: "android-bluetooth-le-ScanCallback"

pub const EXTRA_CALLBACK_TYPE: &'static str[src]

public static final EXTRA_CALLBACK_TYPE

pub const EXTRA_ERROR_CODE: &'static str[src]

public static final EXTRA_ERROR_CODE

pub const EXTRA_LIST_SCAN_RESULT: &'static str[src]

public static final EXTRA_LIST_SCAN_RESULT

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 BluetoothLeScanner

impl AsValidJObjectAndEnv for BluetoothLeScanner

impl Deref for BluetoothLeScanner

type Target = Object

The resulting type after dereferencing.

impl JniType for BluetoothLeScanner

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.