Skip to content

Instantly share code, notes, and snippets.

@stakancheck
Last active January 23, 2024 17:27
Show Gist options
  • Save stakancheck/f60fd069031ee95ae95aa9e8dbb34ccc to your computer and use it in GitHub Desktop.
Save stakancheck/f60fd069031ee95ae95aa9e8dbb34ccc to your computer and use it in GitHub Desktop.
YandexMapProtocol.kt (iosMain)
interface YandexMapProtocol {
val viewController: UIViewController
fun addCameraListener(onDragged: () -> Unit)
fun addMapListener(onPositionSelect: (latitude: Double, longitude: Double) -> Unit)
fun addMapPointListener(onPointClick: (id: Long) -> Unit)
fun onMapStop()
fun onMapStart()
fun onMapMove(latLng: LatLng)
fun updateCustomPoint(latLng: LatLng? = null, visible: Boolean = true)
fun updateMyPoint(latLng: LatLng? = null, visible: Boolean = true)
fun updatePointsCollection(points: List<PointMapModel>)
fun setupFocusRect(bottomFocusAreaPadding: Int)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment