pub enum Lifecycle {
Active,
Inactive,
Background,
}Expand description
Whether the app is in use (lifecycle()), in React Native’s AppState
terms.
Variants§
Active
In the foreground and taking input.
Inactive
Still visible, but not taking input: another app or window has the focus, or the system shows something over it (the app switcher, an incoming call, Control Center).
Background
Not visible: in the background, minimized or hidden. The system may suspend it there.
Implementations§
Trait Implementations§
impl Copy for Lifecycle
impl Eq for Lifecycle
impl StructuralPartialEq for Lifecycle
Auto Trait Implementations§
impl Forget for Lifecycle
impl Freeze for Lifecycle
impl Move for Lifecycle
impl RefUnwindSafe for Lifecycle
impl Send for Lifecycle
impl Sync for Lifecycle
impl Unpin for Lifecycle
impl UnsafeUnpin for Lifecycle
impl UnwindSafe for Lifecycle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.