Read CHANGELOG here.
Step 1. Add the JitPack
repository to your build.gradle
file
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
implementation 'com.github.uizaio:uiza-android-api-sdk:1.x.x'
-
Init
UZApi
public class App extends MultiDexApplication { @Override public void onCreate() { super.onCreate(); UZApi.init(this, <SdkVersion>, UZEnvironment.DEVELOPMENT); } }
-
Call api
UZApi.getLiveViewers(<app_id>, <entity_id>, liveCounter -> {
Timber.e("Views: %d", liveCounter.getViews());
}, Timber:e);
or
UZApi.getLiveViewers(<link_play>, liveCounter -> {
Timber.e("Views: %d", liveCounter.getViews());
}, Timber:e);