-
Notifications
You must be signed in to change notification settings - Fork 1
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
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) }
}
class App : Application() {
val gecko by lazy { geckoAndroid() }
}
Please consider using Dependency Injection for Gecko. You should only need one instance at a time.