All Downloads are FREE. Search and download functionalities are using the official Maven repository.

androidMain.tech.skot.libraries.map.di.SKMapViewInjectorImpl.kt Maven / Gradle / Ivy

The newest version!
package tech.skot.libraries.map.di


import tech.skot.core.di.BaseInjector
import tech.skot.core.di.module
import tech.skot.libraries.map.*
import tech.skot.libraries.map.view.Permissions
import tech.skot.libraries.map.view.PermissionsImpl
import tech.skot.libraries.map.LatLng


class SKMapViewInjectorImpl : SKMapViewInjector {
    override fun sKMap(
        mapInteractionSettingsInitial: SKMapVC.MapInteractionSettings,
        markersInitial: List,
        linesInitial: List,
        polygonsInitial: List,
        selectedMarkerInitial: SKMapVC.Marker?,
        selectMarkerOnClickInitial: Boolean,
        unselectMarkerOnMapClickInitial: Boolean,
        onMarkerClickInitial: Function1?,
        onMarkerSelectedInitial: Function1?,
        onMapClickedInitial: Function1?,
        onMapLongClickedInitial: Function1?,
        onMapBoundsChangeInitial: Function1?,
        showLogInitial: Boolean,
        mapTypeInitital : MapType
    ): SKMapVC =
        SKMapViewProxy(
            mapInteractionSettingsInitial,
            markersInitial,
            linesInitial,
            polygonsInitial,
            selectedMarkerInitial,
            selectMarkerOnClickInitial,
            unselectMarkerOnMapClickInitial,
            onMarkerClickInitial,
            onMarkerSelectedInitial,
            onMapClickedInitial,
            onMapLongClickedInitial,
            onMapBoundsChangeInitial,
            showLogInitial,
            mapTypeInitital
        )
}


val skmapModule = module {
    single { SKMapViewInjectorImpl() }
    single { PermissionsImpl() }
    single { DeclaredPermissionHelperImpl(get()) }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy