提问人:Viks 提问时间:11/17/2023 更新时间:11/17/2023 访问量:19
Jetpack Compose GoogleMap 了解离线状态
Jetpack Compose GoogleMap know offline state
问:
我已经设置了 Jetpack 撰写。GoogleMap
GoogleMap(
modifier = modifier.fillMaxSize(),
cameraPositionState = cameraPositionState,
uiSettings = uiSettings,
)
即使设备处于离线状态,我也可以看到 GoogleMap 加载。我搜索了缓存期的最长期限,但得到了这个:
The exact duration for which Google Maps caches map tiles on a device isn't publicly disclosed by Google.
有谁知道我怎么知道谷歌地图是否从缓存中加载? 我的用例场景是,如果谷歌地图没有离线加载,我想从应用程序中隐藏它。
答: 暂无答案
评论
GoogleMap
onMapLoaded