[]Struct jni_android_sys::android::bluetooth::BluetoothHeadset

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

public final class BluetoothHeadset

Required feature: "android-bluetooth-BluetoothHeadset"

Methods

impl BluetoothHeadset

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

startVoiceRecognition

Required features: "android-bluetooth-BluetoothDevice"

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

stopVoiceRecognition

Required features: "android-bluetooth-BluetoothDevice"

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

isAudioConnected

Required features: "android-bluetooth-BluetoothDevice"

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

sendVendorSpecificResultCode

Required features: "android-bluetooth-BluetoothDevice", "java-lang-String"

pub const ACTION_AUDIO_STATE_CHANGED: &'static str[src]

public static final ACTION_AUDIO_STATE_CHANGED

pub const ACTION_CONNECTION_STATE_CHANGED: &'static str[src]

public static final ACTION_CONNECTION_STATE_CHANGED

pub const ACTION_VENDOR_SPECIFIC_HEADSET_EVENT: &'static str[src]

pub const AT_CMD_TYPE_ACTION: i32[src]

public static final AT_CMD_TYPE_ACTION

pub const AT_CMD_TYPE_BASIC: i32[src]

public static final AT_CMD_TYPE_BASIC

pub const AT_CMD_TYPE_READ: i32[src]

public static final AT_CMD_TYPE_READ

pub const AT_CMD_TYPE_SET: i32[src]

public static final AT_CMD_TYPE_SET

pub const AT_CMD_TYPE_TEST: i32[src]

public static final AT_CMD_TYPE_TEST

pub const EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_ARGS: &'static str[src]

pub const EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD: &'static str[src]

pub const EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE: &'static str[src]

pub const STATE_AUDIO_CONNECTED: i32[src]

public static final STATE_AUDIO_CONNECTED

pub const STATE_AUDIO_CONNECTING: i32[src]

public static final STATE_AUDIO_CONNECTING

pub const STATE_AUDIO_DISCONNECTED: i32[src]

public static final STATE_AUDIO_DISCONNECTED

pub const VENDOR_RESULT_CODE_COMMAND_ANDROID: &'static str[src]

pub const VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY: &'static str[src]

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 BluetoothHeadset

impl AsRef<BluetoothProfile> for BluetoothHeadset

impl AsValidJObjectAndEnv for BluetoothHeadset

impl Deref for BluetoothHeadset

type Target = Object

The resulting type after dereferencing.

impl JniType for BluetoothHeadset

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.