Integrating and initializing the SDK

Add Maven repository

https://mvn.tickaroo.com

to your project and

com.tickaroo:sdk:3.3.1

to the dependencies of your app.

For using the TickarooSDK, you have to initialize it with a TickarooSDK.Builder.
With TickarooSDK.Builder.addModule() you can choose which modules to use. For Android there are two modules available at the moment:

Read Module

This is a module to integrate Tickaroo tickers into your app. To use it, you have to add

com.tickaroo:sdk-read:3.3.1 

to your dependencies. See Display a Liveblog for more information.

Videoclips Module

This is a module to integrate Tickaroo Videoclips mode. Its dependency is

com.tickaroo:sdk-videoclips:3.3.1

See Record videos into a Liveblog.

IMPORTANT

The Context used for initialization needs to be one of your classes, e.g. an Activity or your subclass of Application. If you don’t have your own Application class, .getApplicationContext() is not suitable for TickarooSDK. For further information see TickarooSDK.Builder.build() in the JavaDoc. Don’t worry, we won’t save it. We just need it once.

Example initialization

if (!TickarooSDK.isInitialized()) {
  TickarooSDK.Builder builder = new TickarooSDK.Builder();
  builder
      .addModule()
      .setDelegate(new SampleDelegate())
      .setApiAppName("Tickaroo SDK Sample")
      .setApiClientId()
      .build(this);
}
  • SampleDelegate: see Handling of Links and Tracking
  • ApiAppName: this will end up in the User-Agent HTTP header for logging and debugging.