public final class InneractiveAdManager
extends java.lang.Object
implements com.fyber.inneractive.sdk.config.GlobalConfigResolver.OnGlobalConfigChangedListener
initialize(android.content.Context, java.lang.String) must be called before trying to load an ad
destroy()| Modifier and Type | Class and Description |
|---|---|
static class |
InneractiveAdManager.GdprConsentSource |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GLOBAL_CONFIG_PARAM_FIRST_INIT_EVENT |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areNativeAdsSupportedForOS()
Deprecated.
|
static void |
clearGdprConsentData()
Clear the GDPR consent data
|
static void |
clearImpressionDataListener() |
static void |
clearUSPrivacyString()
Clear the CCPA (us privacy) consent data
|
static void |
destroy()
Call to destroy all ads
|
android.content.Context |
getAppContext()
Getter for application context
|
static java.lang.String |
getAppId()
Expose getAppId, so one can check with which app id the SDK was initialized
|
static java.lang.String |
getDevPlatform()
Deprecated.
|
static java.lang.Boolean |
getGdprConsent() |
static InneractiveAdManager.GdprConsentSource |
getGdprStatusSource() |
static java.lang.String |
getUserId()
getter to the userId
|
static java.lang.String |
getVersion()
Getter for SDK version String i.e.
|
static void |
initialize(android.content.Context context,
java.lang.String appId)
Initialize the inneractive library.
|
static void |
initialize(android.content.Context context,
java.lang.String appId,
OnFyberMarketplaceInitializedListener initializedListener)
Initialize the inneractive library.
|
static boolean |
isCurrentDeviceSupportsVideo()
Deprecated.
|
void |
onGlobalConfigChanged(com.fyber.inneractive.sdk.config.GlobalConfigResolver resolver,
com.fyber.inneractive.sdk.config.GlobalConfig globalConfig)
Will be invoked when we have a new global config
|
static void |
setDevPlatform(java.lang.String devPlatform)
Deprecated.
|
static void |
setGdprConsent(boolean wasConsentGiven)
Set the general data protection regulation consent
|
static void |
setGdprConsent(boolean wasConsentGiven,
InneractiveAdManager.GdprConsentSource source)
Set the general data protection regulation consent
|
static void |
setGdprConsentString(java.lang.String gdprConsent)
Set the general data protection regulation consent string
|
static void |
setImpressionDataListener(OnGlobalImpressionDataListener impressionDataListener) |
static void |
setLogLevel(int level)
Pass android log level to change log level
|
static void |
setUserId(java.lang.String userId)
Set the userId
|
static void |
setUserParams(InneractiveUserConfig userParams)
Set your user related parameters for all ads.
|
static void |
setUSPrivacyString(java.lang.String privacyString)
Set the us privacy consent string
|
static void |
useSecureConnections(boolean isSecured) |
static boolean |
wasInitialized()
Getter for initialization state
|
public static final java.lang.String GLOBAL_CONFIG_PARAM_FIRST_INIT_EVENT
public static void initialize(android.content.Context context,
java.lang.String appId)
context - activity or application contextappId - Inneractive app id obtained from the web consolepublic static void initialize(android.content.Context context,
java.lang.String appId,
OnFyberMarketplaceInitializedListener initializedListener)
context - activity or application contextappId - Inneractive app id obtained from the web consoleinitializedListener - listener update that update after initializepublic static void setImpressionDataListener(OnGlobalImpressionDataListener impressionDataListener)
public static void clearImpressionDataListener()
public static java.lang.String getVersion()
public static java.lang.String getAppId()
public static void destroy()
public static void setLogLevel(int level)
level - of the level available at android.util.Logpublic static void setUserParams(InneractiveUserConfig userParams)
userParams - @Deprecated public static void setDevPlatform(java.lang.String devPlatform)
devPlatform - @Deprecated public static java.lang.String getDevPlatform()
@Deprecated public static boolean areNativeAdsSupportedForOS()
@Deprecated public static boolean isCurrentDeviceSupportsVideo()
public android.content.Context getAppContext()
public static boolean wasInitialized()
public static void setGdprConsent(boolean wasConsentGiven)
wasConsentGiven - public static void setGdprConsent(boolean wasConsentGiven,
InneractiveAdManager.GdprConsentSource source)
wasConsentGiven - source - the source of the gdpr booleanpublic static InneractiveAdManager.GdprConsentSource getGdprStatusSource()
public static java.lang.Boolean getGdprConsent()
public static void setGdprConsentString(java.lang.String gdprConsent)
gdprConsent - public static void setUSPrivacyString(java.lang.String privacyString)
privacyString - a non empty Stringpublic static void clearGdprConsentData()
public static void clearUSPrivacyString()
public static void useSecureConnections(boolean isSecured)
public static void setUserId(java.lang.String userId)
userId - userId given by the publishgerpublic static java.lang.String getUserId()
public void onGlobalConfigChanged(com.fyber.inneractive.sdk.config.GlobalConfigResolver resolver,
com.fyber.inneractive.sdk.config.GlobalConfig globalConfig)
com.fyber.inneractive.sdk.config.GlobalConfigResolver.OnGlobalConfigChangedListeneronGlobalConfigChanged in interface com.fyber.inneractive.sdk.config.GlobalConfigResolver.OnGlobalConfigChangedListenerresolver - the relevant config resolverglobalConfig - the configuration