clients
Topsort Kotlin library
topsort.kt is an Android library for interacting with the Topsort APIs. We currently support sending events and making auction calls but will add more features shortly.
Installation / Getting started
- Clone the repository from github:
git clone https://github.com/topsort/topsort.kt.git
- From Android Studio, import the module:
File -> New -> Import Module
. - A popup window will open with the title: Import Module From Source
- Select the source directory of the downloaded library named:
TopsortAnalytics
, and click finish - Right click on the application project module, from the menu select
Open module Settings
- From the left side of the displayed panel select
dependencies
- Under
Modules
select the application module - Under
Declared Dependencies
, click the+
button, and selectModule Dependency
- A popup will show up, select
TopsortAnalytics
, and at the bottom of the dialog select the type of configuration asimplementation
, then click ok
Usage/Examples
Setup
The following sample code shows how to setup the analytics library before reporting any event or making auction requests:
Kotlin
Java
Reporting Events
The following samples show how report different events after setting up: