-
public class Appstock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumAppstock.LogLevelLogLevel for logging control.NONE - no sdk logs.ERROR - sdk logs with error level only.WARN - sdk logs with warn level only.DEBUG - sdk logs with debug level only. Noisy level.
-
Field Summary
Fields Modifier and Type Field Description private static inttimeoutMillisprivate static intcreativeFactoryTimeoutprivate static intcreativeFactoryTimeoutPreRenderContentprivate static booleandebugRequestsprivate static booleanassignNativeAssetIdprivate static StringendpointIdprivate static Appstock.LogLevellogLevelprivate static List<ExternalUserId>externalUserIdspublic final static StringSDK_VERSIONpublic final static StringSDK_NAMEpublic final static StringOMSDK_VERSION
-
Method Summary
Modifier and Type Method Description static intgetTimeoutMillis()setTimeoutMillis static voidsetTimeoutMillis(int timeoutMillis)Sets connection timeout for bid request. static intgetCreativeFactoryTimeout()setCreativeFactoryTimeout static voidsetCreativeFactoryTimeout(int creativeFactoryTimeout)Sets creative factory timeout. static intgetCreativeFactoryTimeoutPreRenderContent()setCreativeFactoryTimeoutPreRenderContent static voidsetCreativeFactoryTimeoutPreRenderContent(int creativeFactoryTimeoutPreRenderContent)Sets creative factory timeout for prerender content. static booleangetDebugRequests()static voidsetDebugRequests(boolean debugRequests)Sets debug mode for testing requests. static booleansetAssignNativeAssetId()static voidgetAssignNativeAssetId(boolean assignNativeAssetId)For assigning ID to the Assets in the Asset array (in Native Ad Request) static StringgetEndpointId()static voidsetEndpointId(String endpointId)Sets endpoint id. static Appstock.LogLevelgetLogLevel()setLogLevel static voidsetLogLevel(Appstock.LogLevel logLevel)Sets log level for the SDK. static List<ExternalUserId>getExternalUserIds()Returns the List that hold External UserId parameters for the current application user static voidsetExternalUserIds(List<ExternalUserId> externalUserIds)List containing objects that hold External User Id parameters for the current application user. static voidinitializeSdk(Context context, String partnerKey)Initializes the main SDK classes. static booleanisSdkInitialized()Return 'true' if Rendering SDK is initialized completely -
-
Method Detail
-
getTimeoutMillis
static int getTimeoutMillis()
-
setTimeoutMillis
static void setTimeoutMillis(int timeoutMillis)
Sets connection timeout for bid request.
-
getCreativeFactoryTimeout
static int getCreativeFactoryTimeout()
-
setCreativeFactoryTimeout
static void setCreativeFactoryTimeout(int creativeFactoryTimeout)
Sets creative factory timeout. It's time to parse and render banner ads.
- Parameters:
creativeFactoryTimeout- in ms (default 6000ms)
-
getCreativeFactoryTimeoutPreRenderContent
static int getCreativeFactoryTimeoutPreRenderContent()
-
setCreativeFactoryTimeoutPreRenderContent
static void setCreativeFactoryTimeoutPreRenderContent(int creativeFactoryTimeoutPreRenderContent)
Sets creative factory timeout for prerender content. It's time to parse and render interstitial ads.
- Parameters:
creativeFactoryTimeoutPreRenderContent- in ms (default 30000ms)
-
getDebugRequests
static boolean getDebugRequests()
-
setDebugRequests
static void setDebugRequests(boolean debugRequests)
Sets debug mode for testing requests. Setting true allows tosee all request and response bodies in the logcat. Only fortesting purposes.
- Parameters:
debugRequests- boolean
-
setAssignNativeAssetId
static boolean setAssignNativeAssetId()
-
getAssignNativeAssetId
static void getAssignNativeAssetId(boolean assignNativeAssetId)
For assigning ID to the Assets in the Asset array (in Native Ad Request)
-
getEndpointId
@Nullable() static String getEndpointId()
-
setEndpointId
static void setEndpointId(String endpointId)
Sets endpoint id. It's a global placement id for all ad units. If ad unit has placement id,this endpoint id is ignored.
- Parameters:
endpointId- endpoint id
-
getLogLevel
static Appstock.LogLevel getLogLevel()
-
setLogLevel
static void setLogLevel(Appstock.LogLevel logLevel)
Sets log level for the SDK. Must be called before the SDK initialization.
-
getExternalUserIds
static List<ExternalUserId> getExternalUserIds()
Returns the List that hold External UserId parameters for the current application user
-
setExternalUserIds
static void setExternalUserIds(List<ExternalUserId> externalUserIds)
List containing objects that hold External User Id parameters for the current application user.
-
initializeSdk
@MainThread() static void initializeSdk(Context context, String partnerKey)
Initializes the main SDK classes.
- Parameters:
context- not null context
-
isSdkInitialized
static boolean isSdkInitialized()
Return 'true' if Rendering SDK is initialized completely
-
-
-
-