[]Struct jni_android_sys::android::bluetooth::BluetoothGattCharacteristic

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

public class BluetoothGattCharacteristic

Required feature: "android-bluetooth-BluetoothGattCharacteristic"

Methods

impl BluetoothGattCharacteristic

pub fn new<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env UUID>>,
    arg1: i32,
    arg2: i32
) -> Result<Local<'env, BluetoothGattCharacteristic>, Local<'env, Throwable>>
[src]

BluetoothGattCharacteristic

Required features: "java-util-UUID"

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 addDescriptor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BluetoothGattDescriptor>>
) -> Result<bool, Local<'env, Throwable>>
[src]

addDescriptor

Required features: "android-bluetooth-BluetoothGattDescriptor"

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

getService

Required features: "android-bluetooth-BluetoothGattService"

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

getUuid

Required features: "java-util-UUID"

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

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

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

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

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

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

getDescriptors

Required features: "java-util-List"

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

getDescriptor

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

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

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

getIntValue

Required features: "java-lang-Integer"

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

getFloatValue

Required features: "java-lang-Float"

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

getStringValue

Required features: "java-lang-String"

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

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

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

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

setValue

Required features: "java-lang-String"

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 FORMAT_FLOAT: i32[src]

public static final FORMAT_FLOAT

pub const FORMAT_SFLOAT: i32[src]

public static final FORMAT_SFLOAT

pub const FORMAT_SINT16: i32[src]

public static final FORMAT_SINT16

pub const FORMAT_SINT32: i32[src]

public static final FORMAT_SINT32

pub const FORMAT_SINT8: i32[src]

public static final FORMAT_SINT8

pub const FORMAT_UINT16: i32[src]

public static final FORMAT_UINT16

pub const FORMAT_UINT32: i32[src]

public static final FORMAT_UINT32

pub const FORMAT_UINT8: i32[src]

public static final FORMAT_UINT8

pub const PERMISSION_READ: i32[src]

public static final PERMISSION_READ

pub const PERMISSION_READ_ENCRYPTED: i32[src]

public static final PERMISSION_READ_ENCRYPTED

pub const PERMISSION_READ_ENCRYPTED_MITM: i32[src]

public static final PERMISSION_READ_ENCRYPTED_MITM

pub const PERMISSION_WRITE: i32[src]

public static final PERMISSION_WRITE

pub const PERMISSION_WRITE_ENCRYPTED: i32[src]

public static final PERMISSION_WRITE_ENCRYPTED

pub const PERMISSION_WRITE_ENCRYPTED_MITM: i32[src]

public static final PERMISSION_WRITE_ENCRYPTED_MITM

pub const PERMISSION_WRITE_SIGNED: i32[src]

public static final PERMISSION_WRITE_SIGNED

pub const PERMISSION_WRITE_SIGNED_MITM: i32[src]

public static final PERMISSION_WRITE_SIGNED_MITM

pub const PROPERTY_BROADCAST: i32[src]

public static final PROPERTY_BROADCAST

pub const PROPERTY_EXTENDED_PROPS: i32[src]

public static final PROPERTY_EXTENDED_PROPS

pub const PROPERTY_INDICATE: i32[src]

public static final PROPERTY_INDICATE

pub const PROPERTY_NOTIFY: i32[src]

public static final PROPERTY_NOTIFY

pub const PROPERTY_READ: i32[src]

public static final PROPERTY_READ

pub const PROPERTY_SIGNED_WRITE: i32[src]

public static final PROPERTY_SIGNED_WRITE

pub const PROPERTY_WRITE: i32[src]

public static final PROPERTY_WRITE

pub const PROPERTY_WRITE_NO_RESPONSE: i32[src]

public static final PROPERTY_WRITE_NO_RESPONSE

pub const WRITE_TYPE_DEFAULT: i32[src]

public static final WRITE_TYPE_DEFAULT

pub const WRITE_TYPE_NO_RESPONSE: i32[src]

public static final WRITE_TYPE_NO_RESPONSE

pub const WRITE_TYPE_SIGNED: i32[src]

public static final WRITE_TYPE_SIGNED

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 BluetoothGattCharacteristic

impl AsRef<Parcelable> for BluetoothGattCharacteristic

impl AsValidJObjectAndEnv for BluetoothGattCharacteristic

impl Deref for BluetoothGattCharacteristic

type Target = Object

The resulting type after dereferencing.

impl JniType for BluetoothGattCharacteristic

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.