pub struct ActivityManager;Implementations§
Source§impl ActivityManager
impl ActivityManager
pub fn open() -> Result<Self, CoreError>
pub fn open_with_observer() -> Result<(Self, OwnedFd), CoreError>
pub fn open_with_fgproc_observer() -> Result<(Self, OwnedFd), CoreError>
pub fn get_focused_task( &self, ) -> Result<Option<(i32, Option<String>)>, CoreError>
pub fn get_focused_package(&self) -> Result<Option<String>, CoreError>
pub fn get_focused_task_id(&self) -> Result<Option<i32>, CoreError>
Auto Trait Implementations§
impl Freeze for ActivityManager
impl RefUnwindSafe for ActivityManager
impl Send for ActivityManager
impl Sync for ActivityManager
impl Unpin for ActivityManager
impl UnsafeUnpin for ActivityManager
impl UnwindSafe for ActivityManager
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