public EPManagerInterface
The class EPManager
interface composed of methods allowing to catch specific class EPManager
events.
class EPManager
,
class EPManager
Modifier and Type | Method and Description |
---|---|
void |
epManagerAsyncTaskCalled(android.content.Context context,
java.lang.String asyncTaskId,
java.lang.String botUUID,
java.util.Map<java.lang.String,co.eightysixpercent.bot.model.EPContextObject> botContext,
kotlin.jvm.functions.Function1<? super co.eightysixpercent.bot.model.EPRunAsyncTaskResponse,kotlin.Unit> completion)
Called when a bot needs an asynchronous task to be executed.
|
void |
epManagerChatConversationContextDidUpdate(android.content.Context context,
java.lang.String chatConversationId,
java.util.List<co.eightysixpercent.bot.model.EPContextObject> inserts,
java.util.List<co.eightysixpercent.bot.model.EPContextObject> updates,
java.util.Map<java.lang.String,co.eightysixpercent.bot.model.EPContextObject> botContext)
Called when a chat conversation context has been updated.
|
void |
epManagerChatConversationDidUpdate(android.content.Context context,
java.lang.String chatConversationId)
Called when a chat conversation has been updated.
|
void |
epManagerFetchExternalInputOptions(android.content.Context context,
java.lang.String contextKey,
java.lang.String botUUID,
java.util.Map<java.lang.String,co.eightysixpercent.bot.model.EPContextObject> botContext,
java.util.List<co.eightysixpercent.bot.model.EPInputOption> defaultInputOption,
kotlin.jvm.functions.Function1<? super co.eightysixpercent.bot.model.EPInputOptionResponse,kotlin.Unit> completion)
Called when a chat input needs options that have to be fetched externally.
|
void epManagerFetchExternalInputOptions(android.content.Context context, java.lang.String contextKey, java.lang.String botUUID, java.util.Map<java.lang.String,co.eightysixpercent.bot.model.EPContextObject> botContext, java.util.List<co.eightysixpercent.bot.model.EPInputOption> defaultInputOption, kotlin.jvm.functions.Function1<? super co.eightysixpercent.bot.model.EPInputOptionResponse,kotlin.Unit> completion)
Called when a chat input needs options that have to be fetched externally.
context
- The associated contextcontextKey
- The chat input context key.botUUID
- The chat input matching bot UUID.botContext
- The current context of the conversationdefaultInputOption
- The options defined in the editorcompletion
- Must be called in order to let the EPManager knowing how to continue the bot.void epManagerChatConversationDidUpdate(android.content.Context context, java.lang.String chatConversationId)
Called when a chat conversation has been updated.
void epManagerChatConversationContextDidUpdate(android.content.Context context, java.lang.String chatConversationId, java.util.List<co.eightysixpercent.bot.model.EPContextObject> inserts, java.util.List<co.eightysixpercent.bot.model.EPContextObject> updates, java.util.Map<java.lang.String,co.eightysixpercent.bot.model.EPContextObject> botContext)
Called when a chat conversation context has been updated.
context
- The associated contextchatConversationId
- The id of the updated chat conversation.inserts
- The values that have been added to the chat conversation context.updates
- The values that have been updated in the chat conversation context.botContext
- The whole chat conversation context.void epManagerAsyncTaskCalled(android.content.Context context, java.lang.String asyncTaskId, java.lang.String botUUID, java.util.Map<java.lang.String,co.eightysixpercent.bot.model.EPContextObject> botContext, kotlin.jvm.functions.Function1<? super co.eightysixpercent.bot.model.EPRunAsyncTaskResponse,kotlin.Unit> completion)
Called when a bot needs an asynchronous task to be executed.
context
- The associated contextasyncTaskId
- The id of the asynchronous task to execute.botUUID
- The id of the bot being executedbotContext
- The current context of the conversationcompletion
- Must be called at the end of the asynchronous task in order to let the EPManager know how to continue the bot.