public final class SpringStreams extends SpringStreamsBase
SpringStreams
object one time when the application is
started.Modifier and Type | Method and Description |
---|---|
static SpringStreams |
getInstance(java.lang.String site,
java.lang.String application,
android.content.Context context,
java.lang.String market)
Returns the singleton instance of SpringStreams.
|
Stream |
track(StreamAdapter stream,
java.util.Map<java.lang.String,java.lang.Object> atts)
Call this method to start a tracking of a streaming content.
|
getApplication, getEncryptedIdentifiers, getTimeout, getVersion, isDebug, isOfflineMode, isTracking, removeDebuggerObserver, removeDebuggerObservers, setDebug, setDebuggerObserver, setOfflineMode, setTimeout, setTracking, unload
public static SpringStreams getInstance(java.lang.String site, java.lang.String application, android.content.Context context, java.lang.String market)
site
- The site name.application
- The application name.context
- The application context.market
- This method enables users to configure domain using the new parameter in the constructor. Currently we accept only "NO", "FI" and "UK" as values for this parameter.public Stream track(StreamAdapter stream, java.util.Map<java.lang.String,java.lang.Object> atts)
name
is mandatory in the attributes object.stream
- The stream adapter which handles the access to the underlying streaming content.atts
- A map which contains information about the streaming content.Stream
object.java.lang.NullPointerException
- If the stream
or
the atts
parameter is nulljava.lang.IllegalArgumentException
- If the key stream
is not
found in atts
object.StreamAdapter
,
Stream