MapViewLifecycleListener constructor

MapViewLifecycleListener(
  1. void onAttachLambda(
    1. MapViewBase
    ),
  2. void onDetachLambda(
    1. MapViewBase
    ),
  3. void onPauseLambda(),
  4. void onResumeLambda(),
  5. 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.

A MapView is using a

SurfaceView for Android and CAMetalLayer for iOS to render its content.

Implementation

factory MapViewLifecycleListener(
  void Function(MapViewBase) onAttachLambda,
  void Function(MapViewBase) onDetachLambda,
  void Function() onPauseLambda,
  void Function() onResumeLambda,
  void Function() onDestroyLambda,

) => MapViewLifecycleListener$Lambdas(
  onAttachLambda,
  onDetachLambda,
  onPauseLambda,
  onResumeLambda,
  onDestroyLambda,

);