MapViewLifecycleListener class abstract
Provides a mechanism for observing a lifecycle of a map view and/or implementing components whose lifecycle needs to be linked with that of a map view.
A MapView is using a
SurfaceView for Android and CAMetalLayer for iOS to render its content.
Constructors
- MapViewLifecycleListener(void onAttachLambda(MapViewBase), void onDetachLambda(MapViewBase), void onPauseLambda(), void onResumeLambda(), void onDestroyLambda())
-
Provides a mechanism for observing a lifecycle of a map view and/or implementing components
whose lifecycle needs to be linked with that of a map view.
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
-
onAttach(
MapViewBase mapView) → void - Called when adding MapViewLifecycleListener to the map view.
-
onDestroy(
) → void - Called when the map view to which this is attached to is destroyed.
-
onDetach(
MapViewBase mapView) → void - Called when removing MapViewLifecycleListener from the map view.
-
onPause(
) → void - Called when the map view to which this MapViewLifecycleListener is attached to gets paused (usually when the app goes into background).
-
onResume(
) → void - Called when the map view to which this MapViewLifecycleListener is attached to gets resumed (usually when the app goes into foreground).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited