public abstract class SDKCore extends SDKModules
| Modifier and Type | Class and Description |
|---|---|
static class |
SDKCore.Signal |
SDKModules.Modulator| Modifier and Type | Field and Description |
|---|---|
InternalConfig |
config |
protected static SDKCore |
instance |
protected Networking |
networking |
consents, modules| Modifier | Constructor and Description |
|---|---|
protected |
SDKCore() |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<ConfigCore.DID> |
acquireId(CtxCore ctx,
ConfigCore.DID holder,
boolean fallbackAllowed,
Tasks.Callback<ConfigCore.DID> callback) |
void |
changeDeviceIdWithMerge(CtxCore ctx,
java.lang.String id) |
void |
changeDeviceIdWithoutMerge(CtxCore ctx,
java.lang.String id) |
InternalConfig |
config() |
static boolean |
enabled(CoreFeature feature) |
static boolean |
enabled(int feature) |
boolean |
hasConsentForFeature(CoreFeature feature) |
void |
init(CtxCore ctx) |
java.lang.Boolean |
isRequestReady(Request request) |
void |
login(CtxCore ctx,
java.lang.String id) |
void |
logout(CtxCore ctx) |
protected void |
onContextAcquired(CtxCore ctx) |
void |
onCrash(CtxCore ctx,
java.lang.Throwable t,
boolean fatal,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> segments,
java.lang.String[] logs) |
void |
onDeviceId(CtxCore ctx,
ConfigCore.DID id,
ConfigCore.DID old) |
protected void |
onLimitedContextAcquired(CtxCore ctx) |
void |
onRequestCompleted(Request request,
java.lang.String response,
int responseCode,
java.lang.Class<? extends Module> requestOwner)
After a network request has been finished
propagate that response to the module
that owns the request
|
void |
onUserChanged(CtxCore ctx,
org.json.JSONObject changes,
java.util.Set<java.lang.String> cohortsAdded,
java.util.Set<java.lang.String> cohortsRemoved) |
protected InternalConfig |
prepareConfig(CtxCore ctx) |
protected void |
recover(CtxCore ctx) |
void |
stop(CtxCore ctx,
boolean clear) |
UserImpl |
user() |
buildModules, eachModule, getSession, isTracking, module, module, onConsent, onConsentRemoval, onSessionBegan, onSessionEnded, prepareMappings, registerDefaultModuleMapping, registerModuleMapping, sessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonRequest, onSignal, onSignal, storableList, storablePop, storablePurge, storableRead, storableReadBytes, storableReadBytes, storableReadBytesOneOf, storableRemove, storableWrite, storableWriteprotected static SDKCore instance
public InternalConfig config
protected Networking networking
protected InternalConfig prepareConfig(CtxCore ctx)
public void init(CtxCore ctx)
init in interface SDKInterfaceinit in class SDKModulesprotected void onLimitedContextAcquired(CtxCore ctx)
protected void onContextAcquired(CtxCore ctx)
public void stop(CtxCore ctx, boolean clear)
stop in interface SDKInterfacestop in class SDKModulespublic UserImpl user()
public InternalConfig config()
public void onCrash(CtxCore ctx, java.lang.Throwable t, boolean fatal, java.lang.String name, java.util.Map<java.lang.String,java.lang.String> segments, java.lang.String[] logs)
public void onUserChanged(CtxCore ctx, org.json.JSONObject changes, java.util.Set<java.lang.String> cohortsAdded, java.util.Set<java.lang.String> cohortsRemoved)
public void onDeviceId(CtxCore ctx, ConfigCore.DID id, ConfigCore.DID old)
public java.util.concurrent.Future<ConfigCore.DID> acquireId(CtxCore ctx, ConfigCore.DID holder, boolean fallbackAllowed, Tasks.Callback<ConfigCore.DID> callback)
public void login(CtxCore ctx, java.lang.String id)
public void logout(CtxCore ctx)
public void changeDeviceIdWithoutMerge(CtxCore ctx, java.lang.String id)
public void changeDeviceIdWithMerge(CtxCore ctx, java.lang.String id)
public static boolean enabled(int feature)
public static boolean enabled(CoreFeature feature)
public boolean hasConsentForFeature(CoreFeature feature)
public java.lang.Boolean isRequestReady(Request request)
public void onRequestCompleted(Request request, java.lang.String response, int responseCode, java.lang.Class<? extends Module> requestOwner)
request - the request that was sent, used to identify the requestprotected void recover(CtxCore ctx)