Hubro Documentation Help

Android

Hubro Connect library for Android is an integration of the Connect API built specifically for Android. Additionally, it also allows you to collect data from Health Connect and stream this data to the Hubro backend.

The library can be used in your Android application by including following lines in the build.gradle.kts file

dependencies { implementation("hubro-platform:hubro-connect") } repositories { maven { url = uri("https://maven.pkg.github.com/hubro-platform/hubro-connect") } }

The Hubro session which allows you to authenticate the user, view assigned questionnaires and collect data can be constructed as follows

import no.hubroplatform.hubroconnect.HubroSessionBuilder var baseUrl, connectToken val session = HubroSessionBuilder(baseUrl, connectToken)
Last modified: 23 September 2024