public class AdColonyAppOptions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADMARVEL |
static java.lang.String |
ADMOB |
static java.lang.String |
ADOBEAIR |
static java.lang.String |
AERSERVE |
static int |
ALL |
static java.lang.String |
APPODEAL |
static java.lang.String |
COCOS2DX |
static java.lang.String |
CORONA |
static java.lang.String |
FUSEPOWERED |
static java.lang.String |
FYBER |
static java.lang.String |
IRONSOURCE |
static int |
LANDSCAPE |
static java.lang.String |
MOPUB |
static int |
PORTRAIT |
static int |
SENSOR
Deprecated.
|
static java.lang.String |
UNITY |
Constructor and Description |
---|
AdColonyAppOptions() |
Modifier and Type | Method and Description |
---|---|
int |
getAppOrientation()
Used to retrieve the app orientation set in the app options.
|
java.lang.String |
getAppVersion()
Used to retrieve the app version set in the app options.
|
boolean |
getKeepScreenOn()
Used to retrieve the current setting for keepScreenOn.
|
org.json.JSONObject |
getMediationInfo()
Used to retrieve the currently set mediation info.
|
static AdColonyAppOptions |
getMoPubAppOptions(java.lang.String clientOptions)
Used to return app options when configuring the origin store and app version via MoPub's
dashboard
|
boolean |
getMultiWindowEnabled()
Used to retrieve the multi-window enabled flag
|
java.lang.Object |
getOption(java.lang.String key)
Used to retrieve an arbitrary option with the given key.
|
java.lang.String |
getOriginStore()
Used to retrieve the origin store set in the app options.
|
org.json.JSONObject |
getPluginInfo()
Used to retrieve the currently set plugin info.
|
int |
getRequestedAdOrientation()
Used to retrieve the orientation set in the app options.
|
boolean |
getTestModeEnabled()
Used to retrieve the test mode enabled flag
|
java.lang.String |
getUserID()
Used to retrieve the unique user id set in the app options.
|
AdColonyUserMetadata |
getUserMetadata()
Used to retrieve the currently set user metadata.
|
AdColonyAppOptions |
setAppOrientation(int orientation)
Optionally send a constant representing the orientation of your app.
|
AdColonyAppOptions |
setAppVersion(java.lang.String app_version)
Optionally set an app version to be reported to AdColony.
|
AdColonyAppOptions |
setKeepScreenOn(boolean keepScreenOn)
Used to programmatically set a flag on our Activity's window to keep the display from going
to sleep.
|
AdColonyAppOptions |
setMediationNetwork(java.lang.String name,
java.lang.String version)
Used to send information about the mediation network that has implemented AdColony
|
AdColonyAppOptions |
setMultiWindowEnabled(boolean enabled)
Used to alert AdColony that multi-window is enabled for your app, allowing us to adjust
our interstitial layout as necessary.
|
AdColonyAppOptions |
setOption(java.lang.String key,
boolean value)
Optionally set an arbitrary key/value definition
|
AdColonyAppOptions |
setOption(java.lang.String key,
double value)
Optionally set an arbitrary key/value definition
|
AdColonyAppOptions |
setOption(java.lang.String key,
java.lang.String value)
Optionally set an arbitrary key/value definition
|
AdColonyAppOptions |
setOriginStore(java.lang.String origin_store)
Optionally set the origin store for this app (default: 'google').
|
AdColonyAppOptions |
setPlugin(java.lang.String name,
java.lang.String version)
Used to send information about the plugin AdColony wrapper.
|
AdColonyAppOptions |
setRequestedAdOrientation(int orientation)
Optionally send a requested orientation for interstitials to be displayed in.
|
AdColonyAppOptions |
setTestModeEnabled(boolean enabled)
Used to enable test ads for your application without changing dashboard settings.
|
AdColonyAppOptions |
setUserID(java.lang.String user_id)
Optionally set a unique id for this specific app session to be reported to AdColony.
|
AdColonyAppOptions |
setUserMetadata(AdColonyUserMetadata metadata)
Used to send AdColony extra information about this user.
|
public static final int PORTRAIT
public static final int LANDSCAPE
public static final int ALL
public static final java.lang.String ADMOB
public static final java.lang.String MOPUB
public static final java.lang.String IRONSOURCE
public static final java.lang.String APPODEAL
public static final java.lang.String FUSEPOWERED
public static final java.lang.String AERSERVE
public static final java.lang.String ADMARVEL
public static final java.lang.String FYBER
public static final java.lang.String UNITY
public static final java.lang.String ADOBEAIR
public static final java.lang.String COCOS2DX
public static final java.lang.String CORONA
@Deprecated public static final int SENSOR
public AdColonyAppOptions setAppVersion(@NonNull java.lang.String app_version)
app_version
- the version of your app.public java.lang.String getAppVersion()
public AdColonyAppOptions setUserID(@NonNull java.lang.String user_id)
user_id
- the unique id for this user.public java.lang.String getUserID()
public AdColonyAppOptions setOption(@NonNull java.lang.String key, boolean value)
key
- the key for this option mapping.value
- the value for this option mapping.public java.lang.Object getOption(@NonNull java.lang.String key)
key
- the key of the option you wish to retrieve.public AdColonyAppOptions setOption(@NonNull java.lang.String key, double value)
key
- the key for this option mapping.value
- the value for this option mapping.public AdColonyAppOptions setOption(@NonNull java.lang.String key, @NonNull java.lang.String value)
key
- the key for ths option mapping.value
- the value for this option mapping.public AdColonyAppOptions setOriginStore(@NonNull java.lang.String origin_store)
origin_store
- the origin store for this device.public java.lang.String getOriginStore()
public AdColonyAppOptions setRequestedAdOrientation(int orientation)
orientation
- one of the orientation constants defined in this class.public int getRequestedAdOrientation()
public AdColonyAppOptions setAppOrientation(int orientation)
orientation
- one of the orientation constants defined in this class.public int getAppOrientation()
public AdColonyAppOptions setUserMetadata(@NonNull AdColonyUserMetadata metadata)
metadata
- the AdColonyUserMetadata object to send.AdColonyUserMetadata
public AdColonyAppOptions setTestModeEnabled(boolean enabled)
enabled
- represents whether or not to enable test ads for your application.public boolean getTestModeEnabled()
public AdColonyAppOptions setMultiWindowEnabled(boolean enabled)
enabled
- represents whether or not multi window is enabled for your app.public boolean getMultiWindowEnabled()
public AdColonyUserMetadata getUserMetadata()
AdColonyUserMetadata
public AdColonyAppOptions setMediationNetwork(@NonNull java.lang.String name, @NonNull java.lang.String version)
name
- the name of the networkversion
- the version of the adapterpublic org.json.JSONObject getMediationInfo()
setMediationNetwork(String, String)
. Will be mapped to empty Strings if this option has
not been set.public AdColonyAppOptions setPlugin(@NonNull java.lang.String name, @NonNull java.lang.String version)
name
- the name of the pluginversion
- the version of the plugin wrapperpublic org.json.JSONObject getPluginInfo()
setPlugin(String, String)
. Will be mapped to empty Strings if this option has not been
set.public AdColonyAppOptions setKeepScreenOn(boolean keepScreenOn)
keepScreenOn
- whether or not to keep the screen onpublic boolean getKeepScreenOn()
public static AdColonyAppOptions getMoPubAppOptions(@NonNull java.lang.String clientOptions)
AdColonyAppOptions