Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ If you decide to extend from the `BaseSuggestionFragment`, these events are sent

```kotlin
import io.constructor.core.ConstructorIo
import io.constructor.core.ConstructorIoConfig

val config = ConstructorIoConfig("pharmacy-api-key")
ConstructorIo.init(this, config)

// Track when the user focuses into the search bar (searchTerm)
ConstructorIo.trackInputFocus("")
Expand All @@ -163,6 +167,10 @@ These events should be sent manually by the consuming app.

```kotlin
import io.constructor.core.ConstructorIo
import io.constructor.core.ConstructorIoConfig

val config = ConstructorIoConfig("pharmacy-api-key")
ConstructorIo.init(this, config)

// Track when search results are loaded into view (searchTerm, resultCount)
ConstructorIo.trackSearchResultsLoaded("tooth", 789)
Expand Down