LifecycleObserver class abstract
观察者
- Implementers
Constructors
- LifecycleObserver.eventAny(void anyEvent(LifecycleEvent event))
-
当有事件发生
factory
- LifecycleObserver.eventCreate(void event())
-
当 create 的事件发生
factory
- LifecycleObserver.eventDestroy(void event())
-
当 destroy 的事件发生
factory
- LifecycleObserver.eventPause(void event())
-
当 pause 的事件发生
factory
- LifecycleObserver.eventResume(void event())
-
当 resume 的事件发生
factory
- LifecycleObserver.eventStart(void event())
-
当 start 的事件发生
factory
- LifecycleObserver.eventStop(void event())
-
当 stop 的事件发生
factory
- LifecycleObserver.onEventAny(void onAnyEvent(LifecycleOwner owner, LifecycleEvent event))
-
当有事件发生
factory
- LifecycleObserver.onEventCreate(void onEvent(LifecycleOwner owner))
-
当 create 的事件发生
factory
- LifecycleObserver.onEventDestroy(void onEvent(LifecycleOwner owner))
-
当 destroy 的事件发生
factory
- LifecycleObserver.onEventPause(void onEvent(LifecycleOwner owner))
-
当 pause 的事件发生
factory
- LifecycleObserver.onEventResume(void onEvent(LifecycleOwner owner))
-
当 resume 的事件发生
factory
- LifecycleObserver.onEventStart(void onEvent(LifecycleOwner owner))
-
当 start 的事件发生
factory
- LifecycleObserver.onEventStop(void onEvent(LifecycleOwner owner))
-
当 stop 的事件发生
factory
- LifecycleObserver.onStateChange(void onStateChange(LifecycleOwner owner, LifecycleState state))
-
当状态发生变化
factory
- LifecycleObserver.stateChange(void stateChange(LifecycleState state))
-
当状态发生变化
factory
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited