public class

SVSConfiguration

extends SCSConfiguration
java.lang.Object
   ↳ SCSConfiguration
     ↳ com.smartadserver.android.instreamsdk.util.SVSConfiguration

Class Overview

This class holds the global configuration of the SDK.

Summary

Public Methods
synchronized void configure(Context context, int siteId)
Configures the SDK for a given site ID.
SVSAdPlayerConfiguration getDefaultAdPlayerConfiguration()
Returns the default ad player configuration used by the Video SDK.
SVSAdRule[] getDefaultAdRules()
Returns the default ad rules used by the Video SDK.
synchronized static SVSConfiguration getSharedInstance()
Retrieves the shared SVSConfiguration instance.
void setDefaultAdPlayerConfiguration(SVSAdPlayerConfiguration defaultAdPlayerConfiguration)
Sets the default ad player configuration used by the Video SDK.
void setDefaultAdRules(SVSAdRule[] defaultAdRules)
Sets the default ad rules used by the Video SDK.
void setLoggingEnabled(boolean loggingEnabled)
Returns whether the logging is enabled.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public synchronized void configure (Context context, int siteId)

Configures the SDK for a given site ID.

Parameters
context a context.
siteId the site ID that will be used in this application.
Throws
ConfigurationException

public SVSAdPlayerConfiguration getDefaultAdPlayerConfiguration ()

Returns the default ad player configuration used by the Video SDK.

Returns
  • the default ad player configuration used by the Video SDK.

public SVSAdRule[] getDefaultAdRules ()

Returns the default ad rules used by the Video SDK.

Returns
  • the default ad rules used by the Video SDK.

public static synchronized SVSConfiguration getSharedInstance ()

Retrieves the shared SVSConfiguration instance.

public void setDefaultAdPlayerConfiguration (SVSAdPlayerConfiguration defaultAdPlayerConfiguration)

Sets the default ad player configuration used by the Video SDK.

Parameters
defaultAdPlayerConfiguration the default ad player configuration used by the Video SDK.

public void setDefaultAdRules (SVSAdRule[] defaultAdRules)

Sets the default ad rules used by the Video SDK.

Parameters
defaultAdRules the default ad rules used by the Video SDK.

public void setLoggingEnabled (boolean loggingEnabled)

Returns whether the logging is enabled.

Parameters
loggingEnabled true if the SDK needs to display debug information in the Logcat console, false otherwise.