MapViewLifecycleListener constructor
- void onAttachLambda(),
- void onDetachLambda(),
- 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.
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,
);