Back to Flutter Boost

PageVisibilityObserver class

doc/api/page_visibility/PageVisibilityObserver-class.html

5.0.22.3 KB
Original Source

PageVisibilityObserver class

Observer for single page visibility

Constructors

PageVisibilityObserver()

Properties

hashCodeint The hash code for this object. [...] read-only, inherited runtimeTypeType A representation of the runtime type of the object. read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic Invoked when a non-existent method or property is accessed. [...] inherited onBackground() → void onForeground() → void onPageHide() → void It can be regarded as Android "onStop" or iOS "viewDidDisappear" onPageShow() → void Tip:If you want to do things when page is created, please in your StatefulWidget's State and write your code in initState method to initialize [...]toString() → String A string representation of this object. [...] inherited

Operators

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