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)
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)
site
- The sitename.application
- The application name.context
- The application context.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