androidMain.tech.skot.libraries.video.di.SKVideoViewInjectorImpl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of viewlegacy Show documentation
Show all versions of viewlegacy Show documentation
viewlegacy module for SK-Video skot library
package tech.skot.libraries.video.di
import tech.skot.core.di.BaseInjector
import tech.skot.core.di.module
import tech.skot.libraries.video.SKAudioVC
import tech.skot.libraries.video.SKVideoViewProxy
import tech.skot.libraries.video.skAudioViewProxy
class SKVideoViewInjectorImpl : SKVideoViewInjector {
override fun skVideo(
url: String,
useCache: Boolean,
playingInitial: Boolean,
soundInitial: Boolean
) = SKVideoViewProxy(url, useCache, playingInitial, soundInitial)
override fun skAudio(): SKAudioVC? {
return skAudioViewProxy
}
}
val skvideoModule = module {
single { SKVideoViewInjectorImpl() as SKVideoViewInjector }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy