pub struct AudioManager { /* private fields */ }
Expand description
AudioManager 提供对音量和铃声模式的控制。
Implementations§
Source§impl AudioManager
impl AudioManager
Sourcepub const ACTION_HEADSET_PLUG: &'static str = "android.intent.action.HEADSET_PLUG"
pub const ACTION_HEADSET_PLUG: &'static str = "android.intent.action.HEADSET_PLUG"
广播操作:有线耳机已插入或拔出。您无法通过清单中声明的组件接收此信息,只能通过使用 Context.registerReceiver() 明确注册来接收。 意图将具有以下额外值: state - 0 表示拔出,1 表示插入。 name - 耳机类型,人类可读的字符串 microphone - 如果耳机有麦克风则为 1,否则为 0
Trait Implementations§
Source§impl Debug for AudioManager
impl Debug for AudioManager
Source§impl Deref for AudioManager
impl Deref for AudioManager
Source§impl From<&GlobalRef> for AudioManager
impl From<&GlobalRef> for AudioManager
Source§impl Into<GlobalRef> for &AudioManager
impl Into<GlobalRef> for &AudioManager
Source§impl JObjNew for AudioManager
impl JObjNew for AudioManager
Source§impl JType for AudioManager
impl JType for AudioManager
Source§impl PartialEq for AudioManager
impl PartialEq for AudioManager
Auto Trait Implementations§
impl Freeze for AudioManager
impl RefUnwindSafe for AudioManager
impl Send for AudioManager
impl Sync for AudioManager
impl Unpin for AudioManager
impl UnwindSafe for AudioManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more