[]Struct jni_android_sys::android::bluetooth::BluetoothGatt

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

public final class BluetoothGatt

Required feature: "android-bluetooth-BluetoothGatt"

Methods

impl BluetoothGatt

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

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

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

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

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

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

getDevice

Required features: "android-bluetooth-BluetoothDevice"

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

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

getServices

Required features: "java-util-List"

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

getService

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

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

readCharacteristic

Required features: "android-bluetooth-BluetoothGattCharacteristic"

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

writeCharacteristic

Required features: "android-bluetooth-BluetoothGattCharacteristic"

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

readDescriptor

Required features: "android-bluetooth-BluetoothGattDescriptor"

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

writeDescriptor

Required features: "android-bluetooth-BluetoothGattDescriptor"

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

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

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

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

Deprecated

abortReliableWrite

Required features: "android-bluetooth-BluetoothDevice"

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

setCharacteristicNotification

Required features: "android-bluetooth-BluetoothGattCharacteristic"

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

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

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

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

getConnectionState

Required features: "android-bluetooth-BluetoothDevice"

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

getConnectedDevices

Required features: "java-util-List"

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

getDevicesMatchingConnectionStates

Required features: "java-util-List"

pub const CONNECTION_PRIORITY_BALANCED: i32[src]

public static final CONNECTION_PRIORITY_BALANCED

pub const CONNECTION_PRIORITY_HIGH: i32[src]

public static final CONNECTION_PRIORITY_HIGH

pub const CONNECTION_PRIORITY_LOW_POWER: i32[src]

public static final CONNECTION_PRIORITY_LOW_POWER

pub const GATT_CONNECTION_CONGESTED: i32[src]

public static final GATT_CONNECTION_CONGESTED

pub const GATT_FAILURE: i32[src]

public static final GATT_FAILURE

pub const GATT_INSUFFICIENT_AUTHENTICATION: i32[src]

pub const GATT_INSUFFICIENT_ENCRYPTION: i32[src]

public static final GATT_INSUFFICIENT_ENCRYPTION

pub const GATT_INVALID_ATTRIBUTE_LENGTH: i32[src]

public static final GATT_INVALID_ATTRIBUTE_LENGTH

pub const GATT_INVALID_OFFSET: i32[src]

public static final GATT_INVALID_OFFSET

pub const GATT_READ_NOT_PERMITTED: i32[src]

public static final GATT_READ_NOT_PERMITTED

pub const GATT_REQUEST_NOT_SUPPORTED: i32[src]

public static final GATT_REQUEST_NOT_SUPPORTED

pub const GATT_SUCCESS: i32[src]

public static final GATT_SUCCESS

pub const GATT_WRITE_NOT_PERMITTED: i32[src]

public static final GATT_WRITE_NOT_PERMITTED

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 BluetoothGatt

impl AsRef<BluetoothProfile> for BluetoothGatt

impl AsValidJObjectAndEnv for BluetoothGatt

impl Deref for BluetoothGatt

type Target = Object

The resulting type after dereferencing.

impl JniType for BluetoothGatt

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.