pub struct VibratorManager { /* private fields */ }
Expand description
从设备提供对所有振动器的访问,以及以同步方式运行它们的能力。如果您的过程退出,则您开始的任何振动都将停止。
Implementations§
Source§impl VibratorManager
impl VibratorManager
Sourcepub fn get_vibrator(&self, vibrator_id: i32) -> Vibrator
pub fn get_vibrator(&self, vibrator_id: i32) -> Vibrator
通过 ID 检索单个振动器。
返回:具有给定 vibratorId 的振动器,永不为空。
vibrator_id
要检索的振动器的 ID。
Sourcepub fn get_default_vibrator(&self) -> Vibrator
pub fn get_default_vibrator(&self) -> Vibrator
返回设备的默认振动器。
Sourcepub fn cancel_usage_filter(&self, usage_filter: i32)
pub fn cancel_usage_filter(&self, usage_filter: i32)
取消特定类型的正在进行的振动。
usage_filter
要取消的振动类型,表示为 VibrationAttributes 的按位组合。使用值。
Trait Implementations§
Source§impl Debug for VibratorManager
impl Debug for VibratorManager
Source§impl Deref for VibratorManager
impl Deref for VibratorManager
Source§impl From<&GlobalRef> for VibratorManager
impl From<&GlobalRef> for VibratorManager
Source§impl Into<GlobalRef> for &VibratorManager
impl Into<GlobalRef> for &VibratorManager
Source§impl JObjNew for VibratorManager
impl JObjNew for VibratorManager
Source§impl JType for VibratorManager
impl JType for VibratorManager
Source§impl PartialEq for VibratorManager
impl PartialEq for VibratorManager
Auto Trait Implementations§
impl Freeze for VibratorManager
impl RefUnwindSafe for VibratorManager
impl Send for VibratorManager
impl Sync for VibratorManager
impl Unpin for VibratorManager
impl UnwindSafe for VibratorManager
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