Skip to content

Kotlin Flow: cameraMoveStartedEvents missing reason #168

@newmanw

Description

@newmanw

Environment details

OS type and version: any
Library version and other environment information: v3.2.0

Steps to reproduce

googleMap.cameraMoveStartedEvents().collect { ... }

Code example

cameraMoveStartedEvents does not pass reason code:

https://github.com/googlemaps/android-maps-ktx/blob/main/maps-ktx/src/main/java/com/google/maps/android/ktx/GoogleMap.kt#L240

Should be:

public fun GoogleMap.cameraMoveStartedEvents(): Flow<Int> =
    callbackFlow {
        setOnCameraMoveStartedListener {
            trySend(it)
        }
        awaitClose {
            setOnCameraMoveStartedListener(null)
        }
    }

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.releasedtype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions