mapbox-navigation-android icon indicating copy to clipboard operation
mapbox-navigation-android copied to clipboard

Allow global static access to app context

Open devotaaabel opened this issue 8 years ago • 2 comments

There's a lot of different use cases for having access to context globally in the SDK. We could do something similar to what they do in the telemetry library.

devotaaabel avatar Apr 04 '18 15:04 devotaaabel

Is this something we still want to consider in 1.0 @mapbox/navigation-android?

cc @kmadsen

Guardiola31337 avatar Jun 01 '20 18:06 Guardiola31337

OH yeah I totally think we should do this. Happy to see other tickets suggesting it

https://github.com/mapbox/mapbox-navigation-android/pull/3071/files#diff-f104da15d8909da5bcb1f24fae3d746eR63 ^ Let's move it here

The MapboxDistanceFormatter is one interface I came across that would benefit https://github.com/mapbox/mapbox-navigation-android/issues/3016

kmadsen avatar Jun 01 '20 18:06 kmadsen