ditto-lib / live.ditto.android / AndroidDittoKitDependencies

AndroidDittoKitDependencies

interface AndroidDittoKitDependencies : DittoKitDependencies

An interface describing the dependencies required to initialise a live.ditto.DittoKit instance when running on an Android device.

Functions

context

abstract fun context(): Context

Inherited Functions

ensureDirectoryExists

abstract fun ensureDirectoryExists(path: String): Unit

loadLibrary

abstract fun loadLibrary(name: String, version: String): Unit

persistenceDirectory

abstract fun persistenceDirectory(): String

Inheritors

DefaultAndroidDittoKitDependencies

data class DefaultAndroidDittoKitDependencies : AndroidDittoKitDependencies

Provides a default set of dependencies that you can pass to the live.ditto.DittoKit initializer that will work on Android.