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

jvmMain.tech.skot.libraries.map.di.SKMapViewInjectorMock.kt Maven / Gradle / Ivy

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

import tech.skot.core.di.InjectorMock
import tech.skot.core.di.module
import tech.skot.libraries.map.*
import tech.skot.libraries.map.view.Permissions

class SKMapViewInjectorMock : SKMapViewInjector {
    override fun sKMap(
        mapInteractionSettingsInitial: SKMapVC.MapInteractionSettings,
        markersInitial: List,
        linesInitial: List,
        polygonsInitial: List,
        selectedMarkerInitial: SKMapVC.Marker?,
        selectMarkerOnClickInitial: Boolean,
        unselectMarkerOnMapClickInitial: Boolean,
        onMarkerClickInitial: ((SKMapVC.Marker) -> Unit)?,
        onMarkerSelectedInitial: ((SKMapVC.Marker?) -> Unit)?,
        onMapClickedInitial: ((LatLng) -> Unit)?,
        onMapLongClickedInitial: ((LatLng) -> Unit)?,
        onMapBoundsChangeInitial: ((SKMapVC.LatLngBounds) -> Unit)?,
        showLogInitial: Boolean,
        mapTypeInitial: MapType
    ): SKMapVC {
        return SKMapViewMock(
            mapInteractionSettingsInitial,
            markersInitial,
            linesInitial,
            polygonsInitial,
            selectedMarkerInitial,
            selectMarkerOnClickInitial,
            unselectMarkerOnMapClickInitial,
            onMarkerClickInitial,
            onMapClickedInitial,
            onMapLongClickedInitial,
            onMarkerSelectedInitial,
            onMapBoundsChangeInitial,
            showLogInitial,
            mapTypeInitial
        )
    }

}

val skMapModuleMock = module {
    single { SKMapViewInjectorMock() }
    single { PermissionsMock() }
    single { DeclaredPermissionHelperMock() }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy