Tire Tread SDK for Android - Overview
Requirements
Device
To use the Anyline Tire Tread SDK on Android you will need a device that meets only three requirements:
-
Android 8.0 - Oreo - or newer (API level 26+)
-
Decent camera functionality (recommended: ≥ 720p and adequate auto focus)
-
Stable internet connection
Although not required, a device with 'Flash' capability is highly recommended.
Environment
Your development/application environment is required to have at least the following tools and versions (or newer) available:
-
JDK 17
-
Gradle 8.1.0
-
id 'com.android.application' version '8.1.0' apply false
-
-
Kotlin 1.9.0
-
id 'org.jetbrains.kotlin.android' version '1.9.0' apply false
-
-
compileSdk 34
-
android { compileSdk 34
…
-
-
minSdk 26
-
…
minSdk 26
…
-
-
Compose Compiler 1.5.0
-
…
composeOptions { kotlinCompilerExtensionVersion = "1.5.0" }
…
-
Implementation
At minimum, implementing the Anyline Tire Tread SDK will require two steps:
1. Anyline Tire Tread SDK initialization
The function AnylineTireTreadSdk.init
is responsible for initializing the Anyline Tire Tread SDK with your License Key. It needs to be called only once, and before running any other Anyline Tire Tread SDK-related tasks.
2. TireTreadScanView implementation
The TireTreadScanView
is an UI element which extends the android.view.ViewGroup
, thus it can be directly placed in your Layout along with other views.
This view handles the camera access and provides functions for you to start and end the scan process, as well as the "distance information" to guide the scan process.
Check the Android SDK - Getting Started section to begin.