File tree Expand file tree Collapse file tree
maps-compose-widgets/src/main/java/com/google/maps/android/compose/widgets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -254,11 +254,7 @@ public fun DisappearingScaleBar(
254254 MutableTransitionState (true )
255255 }
256256
257- // `LaunchedEffect` is a coroutine-based effect that is launched when the composable
258- // enters the composition. The `key1` parameter is used to re-launch the effect
259- // whenever the value of the key changes. In this case, we are using
260- // `cameraPositionState.position` as the key, so the effect will be re-launched
261- // every time the camera position changes.
257+ // This effect is re-launched every time the camera position changes.
262258 //
263259 // The effect itself makes the scale bar visible, waits for the specified duration,
264260 // and then makes it invisible again. This creates the "disappearing" effect.
You can’t perform that action at this time.
0 commit comments