public interface SDKInterface
| Modifier and Type | Method and Description |
|---|---|
InternalConfig |
config() |
SessionImpl |
getSession() |
void |
init(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) |
void |
onRequest(CtxCore ctx,
Request request) |
SessionImpl |
onSessionBegan(CtxCore ctx,
SessionImpl session)
Notify all
Module instances about new session has just been started |
SessionImpl |
onSessionEnded(CtxCore ctx,
SessionImpl session)
Notify all
Module instances session was ended |
void |
onSignal(CtxCore ctx,
int id,
Byteable param1,
Byteable param2) |
void |
onSignal(CtxCore ctx,
int id,
java.lang.String param) |
void |
onUserChanged(CtxCore ctx,
org.json.JSONObject changes,
java.util.Set<java.lang.String> cohortsAdded,
java.util.Set<java.lang.String> cohortsRemoved) |
SessionImpl |
session(CtxCore ctx,
java.lang.Long id)
Get current
SessionImpl or create new one if current is null. |
void |
stop(CtxCore ctx,
boolean clear) |
java.util.List<java.lang.Long> |
storableList(CtxCore ctx,
java.lang.String prefix,
int slice) |
<T extends Storable> |
storablePop(CtxCore ctx,
T storable) |
int |
storablePurge(CtxCore ctx,
java.lang.String prefix) |
<T extends Storable> |
storableRead(CtxCore ctx,
T storable) |
byte[] |
storableReadBytes(CtxCore ctx,
java.lang.String name) |
byte[] |
storableReadBytes(CtxCore ctx,
java.lang.String prefix,
java.lang.Long id) |
<T extends Storable> |
storableReadBytesOneOf(CtxCore ctx,
T storable,
boolean asc) |
<T extends Storable> |
storableRemove(CtxCore ctx,
T storable) |
java.lang.Boolean |
storableWrite(CtxCore ctx,
java.lang.String prefix,
java.lang.Long id,
byte[] data) |
<T extends Storable> |
storableWrite(CtxCore ctx,
T storable) |
UserImpl |
user() |
UserImpl user()
InternalConfig config()
void init(CtxCore ctx)
void stop(CtxCore ctx, boolean clear)
void onDeviceId(CtxCore ctx, ConfigCore.DID id, ConfigCore.DID old)
SessionImpl getSession()
SessionImpl session(CtxCore ctx, java.lang.Long id)
SessionImpl or create new one if current is null.ctx - Ctx to create new SessionImpl inid - ID of new SessionImpl if neededSessionImpl instanceSessionImpl onSessionBegan(CtxCore ctx, SessionImpl session)
Module instances about new session has just been startedsession - session to beginSessionImpl onSessionEnded(CtxCore ctx, SessionImpl session)
Module instances session was endedsession - session to endvoid 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 onUserChanged(CtxCore ctx, org.json.JSONObject changes, java.util.Set<java.lang.String> cohortsAdded, java.util.Set<java.lang.String> cohortsRemoved)
int storablePurge(CtxCore ctx, java.lang.String prefix)
java.lang.Boolean storableWrite(CtxCore ctx, java.lang.String prefix, java.lang.Long id, byte[] data)
byte[] storableReadBytes(CtxCore ctx, java.lang.String name)
byte[] storableReadBytes(CtxCore ctx, java.lang.String prefix, java.lang.Long id)
<T extends Storable> java.util.Map.Entry<java.lang.Long,byte[]> storableReadBytesOneOf(CtxCore ctx, T storable, boolean asc)
java.util.List<java.lang.Long> storableList(CtxCore ctx, java.lang.String prefix, int slice)
void onSignal(CtxCore ctx, int id, java.lang.String param)