Builder

class Builder

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class PendingPlugin<C : Any, I : Any>(val plugin: DockwarePlugin<C, I>, val instanceType: KClass<I>, val configure: C.() -> Unit)

Functions

Link copied to clipboard

Configures the SDK to use API Key authentication. This is mutually exclusive with custom Auth plugins.

Link copied to clipboard

Finalizes configuration and creates the global Dockware.instance.

Link copied to clipboard
inline fun <C : Any, I : Any> plugin(plugin: DockwarePlugin<C, I>, noinline configure: C.() -> Unit = {}): Dockware.Builder

Registers a plugin for use with the SDK. Plugins have access to the dependency graph and can be accessed with the instance's getPlugin function.

Link copied to clipboard

Sets the shared preferences instance used by the SDK for local caching. If not provided, an InMemorySharedPreferences will be used.