LifecycleObserver class abstract

生命周期监听

Implementers

Constructors

LifecycleObserver()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAttach() → void
Flutter 容器打开,如 Android 进入 Activity
onDetach() → void
Flutter 容器关闭,如 Android 退出 Activity
onFront(bool isFront) → void
Flutter 容器页面appear/disappear的通知,包括:1 Flutter 容器页面展示/消失;2 App 切前台/后台
onPause(RoutePage? routePage) → void
页面不可见,类似 Android Activity#onPause
onResume(RoutePage? routePage) → void
页面可见,类似 Android Activity#onResume
onStart(RoutePage? routePage) → void
页面首次打开,类似 Android Activity#onCreate
onStop(RoutePage? routePage) → void
页面退出,类似 Android Activity#onDestory
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited