Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Parameter order for SAM interface for CustomGeometrySource #12010

Closed
mkrussel77 opened this issue May 25, 2018 · 1 comment
Closed

Parameter order for SAM interface for CustomGeometrySource #12010

mkrussel77 opened this issue May 25, 2018 · 1 comment
Assignees
Labels
Android Mapbox Maps SDK for Android SEMVER-MAJOR Requires a major release according to Semantic Versioning rules

Comments

@mkrussel77
Copy link

Platform: Android
Mapbox SDK version: 6.1.1

The current parameter order the CustomGeometrySource makes it harder to use with Kotlin.

public CustomGeometrySource(String id, GeometryTileProvider provider, CustomGeometrySourceOptions options)

Would be nicer as

public CustomGeometrySource(String id, CustomGeometrySourceOptions options, GeometryTileProvider provider)

This is Googles recommendation for making Java libraries more Kotlin friendly.

https://android.github.io/kotlin-guides/interop.html#lambda-parameters-last

Minor issue, but a change to consider with the next major release. Or deprecating the current constructor and adding a new constructor.

@tobrun tobrun added Android Mapbox Maps SDK for Android SEMVER-MAJOR Requires a major release according to Semantic Versioning rules labels May 25, 2018
@tobrun tobrun added this to the android-v7.0.0 milestone May 25, 2018
@tobrun tobrun modified the milestone: android-v7.0.0 Sep 19, 2018
@tobrun
Copy link
Member

tobrun commented Oct 26, 2018

Landed in #13178 on android-semver

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android SEMVER-MAJOR Requires a major release according to Semantic Versioning rules
Projects
None yet
Development

No branches or pull requests

3 participants