Kotlin
If your application is written using Kotlin, follow these steps to configure the SDK.
Open the entry point activity file for your application. This may be called
MainActivity.kt
if using a standard template.Add the import statement
import ai.pulselabs.flightrecorder.FlightRecorderSdk
at the top of the file:import ai.pulselabs.flightrecorder.FlightRecorderSdk
Locate the
override fun onCreate(savedInstanceState: Bundle?) {
method and place theFlightRecorderSdk(this, lifecycle, this, apiKey = "{YOUR_API_KEY}", typography")
line at the end of the function, replacing YOUR_API_KEY with your own API Key, and also a Typography object if you want so supply your own fonts:If you have multiple activities in your application, repeat the above steps for each activity, importing the library and calling
FlightRecorderSdk(this, lifecycle, this, apiKey = "API_KEY", typography)
each time.
The SDK is now configured.
Last updated