NavigationLauncher启动时的屏幕截图

时间:2019-05-20 07:42:15

标签: android kotlin mapbox

我一直在探索Mapbox Android Sdk。屏幕捕获导航启动器时出现问题。可以捕获Navigationlauncher吗?

这是我的快照代码

val snapShotOptions = MapSnapshotter.Options(500, 500)
        snapShotOptions.withRegion(mapboxMap.projection.visibleRegion.latLngBounds)
        snapShotOptions.withStyle(style.url)

mMapSnapshotter = MapSnapshotter(this, snapShotOptions)

这是我的模拟路线代码

val simulateRoute = true
val options = NavigationLauncherOptions.builder()
                    .directionsRoute(currentRoute)
                    .shouldSimulateRoute(simulateRoute)
                    .build()

NavigationLauncher.startNavigation(this, options)

我需要从navigationLauncher获取地图,并将其用作顶部函数的参数..

0 个答案:

没有答案