[−]Struct jni_android_sys::android::bluetooth::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]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env IntArray>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
getDevicesMatchingConnectionStates
Required features: "java-util-List"
pub fn getConnectionState<'env>(
&'env self,
arg0: impl Into<Option<&'env BluetoothDevice>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BluetoothDevice>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-bluetooth-BluetoothDevice"
pub fn startVoiceRecognition<'env>(
&'env self,
arg0: impl Into<Option<&'env BluetoothDevice>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BluetoothDevice>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-bluetooth-BluetoothDevice"
pub fn stopVoiceRecognition<'env>(
&'env self,
arg0: impl Into<Option<&'env BluetoothDevice>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BluetoothDevice>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-bluetooth-BluetoothDevice"
pub fn isAudioConnected<'env>(
&'env self,
arg0: impl Into<Option<&'env BluetoothDevice>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BluetoothDevice>>
) -> Result<bool, Local<'env, Throwable>>
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]
&'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>>
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]
public static final ACTION_VENDOR_SPECIFIC_HEADSET_EVENT
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]
public static final EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_ARGS
pub const EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD: &'static str
[src]
public static final EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD
pub const EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE: &'static str
[src]
public static final EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE
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]
public static final VENDOR_RESULT_CODE_COMMAND_ANDROID
pub const VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY: &'static str
[src]
public static final VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for BluetoothHeadset
impl AsRef<BluetoothProfile> for BluetoothHeadset
fn as_ref(&self) -> &BluetoothProfile
impl AsValidJObjectAndEnv for BluetoothHeadset
impl Deref for BluetoothHeadset
impl JniType for BluetoothHeadset
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for BluetoothHeadset
impl !Send for BluetoothHeadset
impl !Sync for BluetoothHeadset
impl Unpin for BluetoothHeadset
impl UnwindSafe for BluetoothHeadset
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,