Configuration
The SDK libraries are distributed from the Maven repository located at https://repo.sonicmedia.io/repository/maven/
Set the Maven repository in your project
build.gradle
repositories {
maven {
url "https://repo.sonicmedia.io/repository/maven/"
}
}
Add the SonicMedia SDK dependency
app/build.gradle
dependencies {
implementation "io.sonicmedia:sonicmediasdk:1.0.0"
}
SDK Initialization
The SDK needs to be initialized using the API Key and Server URL provided by SonicMedia.
val detectionService = SonicMedia.getDetectionService("<serverurl>", "<apikey>")