public class APIBootstrap
extends java.lang.Object
Provides functions to Bootstrap various versions of the API. Calling these functions multiple times will return the same object.
| Constructor and Description |
|---|
APIBootstrap() |
| Modifier and Type | Method and Description |
|---|---|
static javax.net.ssl.SSLSocketFactory |
createTLSSocketFactory() |
static KongregateAPI |
getInstance() |
static KongregateAPI |
initializeNativeAPI(android.app.Activity context,
long gameId,
java.lang.String mobileApiKey)
Initialize the API for a native client application
|
static KongregateAPI |
initializeNativeAPI(android.app.Activity context,
long gameId,
java.lang.String mobileApiKey,
java.util.Map<java.lang.String,java.lang.Object> apiOptions)
Initialize the API for a native client application
|
static KongregateAPI |
initializeNativeAPI(android.app.Activity context,
long gameId,
java.lang.String mobileApiKey,
java.lang.String apiOptionsJsonString) |
static KongregateAPI |
initializeNativeAPI(android.app.Activity context,
java.util.Map<java.lang.String,java.lang.Object> apiOptions)
Initialize the API to collect analytics only (no Kongregate panel or backend)
|
public static KongregateAPI initializeNativeAPI(android.app.Activity context, long gameId, java.lang.String mobileApiKey)
Initialize the API for a native client application
context - A valid contextgameId - The Kongregate game id from the API pagemobileApiKey - The Kongregate mobile API key from the API pageKongregateAPI instancepublic static KongregateAPI initializeNativeAPI(android.app.Activity context, java.util.Map<java.lang.String,java.lang.Object> apiOptions)
Initialize the API to collect analytics only (no Kongregate panel or backend)
context - A valid contextapiOptions - A dictionary with settings for controlling API behaviorpublic static KongregateAPI initializeNativeAPI(android.app.Activity context, long gameId, java.lang.String mobileApiKey, java.util.Map<java.lang.String,java.lang.Object> apiOptions)
Initialize the API for a native client application
context - A valid contextgameId - The Kongregate game id from the API pagemobileApiKey - The Kongregate mobile API key from the API pageapiOptions - Options from KongregateAPI for configuring various aspects of the API (optional, can be null)KongregateAPI instancepublic static KongregateAPI initializeNativeAPI(android.app.Activity context, long gameId, java.lang.String mobileApiKey, java.lang.String apiOptionsJsonString)
public static KongregateAPI getInstance()
java.lang.IllegalStateException - if API has not been initializedpublic static javax.net.ssl.SSLSocketFactory createTLSSocketFactory()