pub struct ActivityManager { /* private fields */ }
Expand description
An ActivityManager
tracks the state of user input interaction activity.
Implementations§
Source§impl ActivityManager
impl ActivityManager
Sourcepub async fn new(
idle_threshold_ms: MonotonicDuration,
suspend_enabled: bool,
) -> Rc<Self>
pub async fn new( idle_threshold_ms: MonotonicDuration, suspend_enabled: bool, ) -> Rc<Self>
Creates a new ActivityManager
that listens for user input
input interactions and notifies clients of activity state changes.
Sourcepub async fn handle_interaction_aggregator_request_stream(
self: Rc<Self>,
stream: AggregatorRequestStream,
) -> Result<(), Error>
pub async fn handle_interaction_aggregator_request_stream( self: Rc<Self>, stream: AggregatorRequestStream, ) -> Result<(), Error>
Handles the request stream for fuchsia.input.interaction.observation.Aggregator.
§Parameters
stream
: The AggregatorRequestStream
to be handled.
Sourcepub async fn handle_interaction_notifier_request_stream(
self: Rc<Self>,
stream: NotifierRequestStream,
) -> Result<(), Error>
pub async fn handle_interaction_notifier_request_stream( self: Rc<Self>, stream: NotifierRequestStream, ) -> Result<(), Error>
Handles the request stream for fuchsia.input.interaction.Notifier.
§Parameters
stream
: The NotifierRequestStream
to be handled.
Auto Trait Implementations§
impl !Freeze for ActivityManager
impl !RefUnwindSafe for ActivityManager
impl !Send for ActivityManager
impl !Sync for ActivityManager
impl Unpin 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