[]Struct jni_android_sys::android::bluetooth::BluetoothDevice

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

public final class BluetoothDevice

Required feature: "android-bluetooth-BluetoothDevice"

Methods

impl BluetoothDevice

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 hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

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

toString

Required features: "java-lang-String"

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

pub fn writeToParcel<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Parcel>>,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

writeToParcel

Required features: "android-os-Parcel"

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

getAddress

Required features: "java-lang-String"

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

getName

Required features: "java-lang-String"

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

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

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

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

getBluetoothClass

Required features: "android-bluetooth-BluetoothClass"

pub fn getUuids<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<ParcelUuid, Throwable>>>, Local<'env, Throwable>>
[src]

getUuids

Required features: "android-os-ParcelUuid"

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

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

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

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

createRfcommSocketToServiceRecord

Required features: "android-bluetooth-BluetoothSocket", "java-util-UUID"

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

createInsecureRfcommSocketToServiceRecord

Required features: "android-bluetooth-BluetoothSocket", "java-util-UUID"

pub fn connectGatt_Context_boolean_BluetoothGattCallback<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Context>>,
    arg1: bool,
    arg2: impl Into<Option<&'env BluetoothGattCallback>>
) -> Result<Option<Local<'env, BluetoothGatt>>, Local<'env, Throwable>>
[src]

connectGatt

Required features: "android-bluetooth-BluetoothGatt", "android-bluetooth-BluetoothGattCallback", "android-content-Context"

pub fn connectGatt_Context_boolean_BluetoothGattCallback_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Context>>,
    arg1: bool,
    arg2: impl Into<Option<&'env BluetoothGattCallback>>,
    arg3: i32
) -> Result<Option<Local<'env, BluetoothGatt>>, Local<'env, Throwable>>
[src]

connectGatt

Required features: "android-bluetooth-BluetoothGatt", "android-bluetooth-BluetoothGattCallback", "android-content-Context"

pub fn connectGatt_Context_boolean_BluetoothGattCallback_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Context>>,
    arg1: bool,
    arg2: impl Into<Option<&'env BluetoothGattCallback>>,
    arg3: i32,
    arg4: i32
) -> Result<Option<Local<'env, BluetoothGatt>>, Local<'env, Throwable>>
[src]

connectGatt

Required features: "android-bluetooth-BluetoothGatt", "android-bluetooth-BluetoothGattCallback", "android-content-Context"

pub fn connectGatt_Context_boolean_BluetoothGattCallback_int_int_Handler<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Context>>,
    arg1: bool,
    arg2: impl Into<Option<&'env BluetoothGattCallback>>,
    arg3: i32,
    arg4: i32,
    arg5: impl Into<Option<&'env Handler>>
) -> Result<Option<Local<'env, BluetoothGatt>>, Local<'env, Throwable>>
[src]

connectGatt

Required features: "android-bluetooth-BluetoothGatt", "android-bluetooth-BluetoothGattCallback", "android-content-Context", "android-os-Handler"

pub const ACTION_ACL_CONNECTED: &'static str[src]

public static final ACTION_ACL_CONNECTED

pub const ACTION_ACL_DISCONNECTED: &'static str[src]

public static final ACTION_ACL_DISCONNECTED

pub const ACTION_ACL_DISCONNECT_REQUESTED: &'static str[src]

public static final ACTION_ACL_DISCONNECT_REQUESTED

pub const ACTION_BOND_STATE_CHANGED: &'static str[src]

public static final ACTION_BOND_STATE_CHANGED

pub const ACTION_CLASS_CHANGED: &'static str[src]

public static final ACTION_CLASS_CHANGED

pub const ACTION_FOUND: &'static str[src]

public static final ACTION_FOUND

pub const ACTION_NAME_CHANGED: &'static str[src]

public static final ACTION_NAME_CHANGED

pub const ACTION_PAIRING_REQUEST: &'static str[src]

public static final ACTION_PAIRING_REQUEST

pub const ACTION_UUID: &'static str[src]

public static final ACTION_UUID

pub const BOND_BONDED: i32[src]

public static final BOND_BONDED

pub const BOND_BONDING: i32[src]

public static final BOND_BONDING

pub const BOND_NONE: i32[src]

public static final BOND_NONE

pub fn CREATOR<'env>(env: &'env Env) -> Option<Local<'env, Parcelable_Creator>>[src]

get public static final CREATOR

Required feature: "android-os-Parcelable_Creator"

pub const DEVICE_TYPE_CLASSIC: i32[src]

public static final DEVICE_TYPE_CLASSIC

pub const DEVICE_TYPE_DUAL: i32[src]

public static final DEVICE_TYPE_DUAL

pub const DEVICE_TYPE_LE: i32[src]

public static final DEVICE_TYPE_LE

pub const DEVICE_TYPE_UNKNOWN: i32[src]

public static final DEVICE_TYPE_UNKNOWN

pub const ERROR: i32[src]

public static final ERROR

pub const EXTRA_BOND_STATE: &'static str[src]

public static final EXTRA_BOND_STATE

pub const EXTRA_CLASS: &'static str[src]

public static final EXTRA_CLASS

pub const EXTRA_DEVICE: &'static str[src]

public static final EXTRA_DEVICE

pub const EXTRA_NAME: &'static str[src]

public static final EXTRA_NAME

pub const EXTRA_PAIRING_KEY: &'static str[src]

public static final EXTRA_PAIRING_KEY

pub const EXTRA_PAIRING_VARIANT: &'static str[src]

public static final EXTRA_PAIRING_VARIANT

pub const EXTRA_PREVIOUS_BOND_STATE: &'static str[src]

public static final EXTRA_PREVIOUS_BOND_STATE

pub const EXTRA_RSSI: &'static str[src]

public static final EXTRA_RSSI

pub const EXTRA_UUID: &'static str[src]

public static final EXTRA_UUID

pub const PAIRING_VARIANT_PASSKEY_CONFIRMATION: i32[src]

pub const PAIRING_VARIANT_PIN: i32[src]

public static final PAIRING_VARIANT_PIN

pub const PHY_LE_1M: i32[src]

public static final PHY_LE_1M

pub const PHY_LE_1M_MASK: i32[src]

public static final PHY_LE_1M_MASK

pub const PHY_LE_2M: i32[src]

public static final PHY_LE_2M

pub const PHY_LE_2M_MASK: i32[src]

public static final PHY_LE_2M_MASK

pub const PHY_LE_CODED: i32[src]

public static final PHY_LE_CODED

pub const PHY_LE_CODED_MASK: i32[src]

public static final PHY_LE_CODED_MASK

pub const PHY_OPTION_NO_PREFERRED: i32[src]

public static final PHY_OPTION_NO_PREFERRED

pub const PHY_OPTION_S2: i32[src]

public static final PHY_OPTION_S2

pub const PHY_OPTION_S8: i32[src]

public static final PHY_OPTION_S8

pub const TRANSPORT_AUTO: i32[src]

public static final TRANSPORT_AUTO

pub const TRANSPORT_BREDR: i32[src]

public static final TRANSPORT_BREDR

pub const TRANSPORT_LE: i32[src]

public static final TRANSPORT_LE

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 BluetoothDevice

impl AsRef<Parcelable> for BluetoothDevice

impl AsValidJObjectAndEnv for BluetoothDevice

impl Deref for BluetoothDevice

type Target = Object

The resulting type after dereferencing.

impl JniType for BluetoothDevice

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.