Skip to content

Verbose Usage

wiki de pasquale edited this page Mar 7, 2022 · 1 revision

Use Gecko in "verbose" only if you want to extend some functionality, test some use-cases or don't use Android. For general purpose it's recommended to follow Android Usage

Start up!

val gecko = gecko()

If you want to customize any parameters, you can use extending builder:

val gecko = gecko {
    domain = "your.domain.com"
    encoder = Base64Encoder { … }
    adapter = object : MetadataAdapter { … }
    logger = Logger { … }

    addStep { GeckoYourModule(it) }
}

Start up! [Android]

class App : Application() {

    val gecko by lazy { geckoAndroid() }

}

Please consider using Dependency Injection for Gecko. You should only need one instance at a time.

Clone this wiki locally