Package io.flutter.embedding.engine.systemchannels

# Class LifecycleChannel

java.lang.Object
io.flutter.embedding.engine.systemchannels.LifecycleChannel

public class LifecycleChannel extends Object
A `BasicMessageChannel` that communicates lifecycle events to the framework.

The activity listens to the Android lifecycle events, in addition to the focus events for windows, and this channel combines that information to decide if the application is the inactive, resumed, paused, or detached state.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LifecycleChannel(DartExecutor dartExecutor)`
  `LifecycleChannel(BasicMessageChannel<String> channel)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `appIsDetached()`
  `void`
  `appIsInactive()`
  `void`
  `appIsPaused()`
  `void`
  `appIsResumed()`
  `void`
  `aWindowIsFocused()`
  `void`
  `noWindowsAreFocused()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### LifecycleChannel

    public LifecycleChannel(@NonNull DartExecutor dartExecutor)

  - ### LifecycleChannel

    @VisibleForTesting public LifecycleChannel(@NonNull BasicMessageChannel<String> channel)

- ## Method Details

  - ### aWindowIsFocused

    public void aWindowIsFocused()

  - ### noWindowsAreFocused

    public void noWindowsAreFocused()

  - ### appIsResumed

    public void appIsResumed()

  - ### appIsInactive

    public void appIsInactive()

  - ### appIsPaused

    public void appIsPaused()

  - ### appIsDetached

    public void appIsDetached()