SDK For Data Streaming

Android

6min

Installation

Add the JitPack repository to your build file in your root build.gradle at the end of repositories:

Java


Add Qualetics SDK to your apps build.gradle file.

Java


In the same file under application - tag you need to define mqtt client service which is used as protocol for communicating with Qualetics servers.

Java


Usage

To use the SDK it first needs to be initialized

Java


To set the appVersion parameter that is sent with the messages you can set it with:

Java


To set default actor that will be sent with all messages without defined actor:

Java


To set default actor to be stored from api call:

Java


Then connect to server:

Java


After connection is initialized it can be used to send events to the server

Java