Class LifecycleChannel
- java.lang.Object
-
- io.flutter.embedding.engine.systemchannels.LifecycleChannel
-
public class LifecycleChannel extends Object
ABasicMessageChannelthat 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappIsDetached()voidappIsInactive()voidappIsPaused()voidappIsResumed()voidaWindowIsFocused()voidnoWindowsAreFocused()
-
-
-
Constructor Detail
-
LifecycleChannel
public LifecycleChannel(@NonNull DartExecutor dartExecutor)
-
LifecycleChannel
public LifecycleChannel(@NonNull BasicMessageChannel<String> channel)
-
-