Skip to main content

SDK Features

note

You can use static import of KotzillaSDK to use directly following functions

Send Logs

To help complete your app context data, you can add messages to your timeline, KotzillaSDK.log :

KotzillaSDK.log("a message ...")

This will add the message to your timeline.

Capture Crashes

You can capture any exception with the KotzillaSDK.log function:

KotzillaSDK.log("a message ...", exception)

This will add the message to your timeline.

Trace code performance

You may need to track performances of special code, and add it to your timeline. Use the KotzillaSDK.trace function:

KotzillaSDK.trace("my_code_block"){

// My code to benchmark here ...
myComponent.MyHeavyCall()
}

This will add the code benchmark to your timeline.

Add Session Properties

To help add context to your app data, you can add properties to the current session, KotzillaSDK.setProperties :

KotzillaSDK.setProperties(
"my_string" to "a_string",
"my_int" to 1,
"my_double" to 1.0,
"my_bool" to true,
)

This will add the properties to session data.

Set User Id Properties

To help track your session data, you can set a user Id to the current session, KotzillaSDK.setUserId :

KotzillaSDK.setUserId("user_123")

This will add the property to session data.