Package zendesk.chat
Class ChatEngine
- java.lang.Object
-
- ObservableEngine
-
- zendesk.chat.ChatEngine
-
public class ChatEngine extends ObservableEngine
Implementation of an engine that connects Messaging SDK with ChatProviders.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static ChatEngine
engine()
Returns the chat engine to be used in the Messaging SDK.Description
getDescription()
java.lang.String
getId()
Type
getType()
boolean
isConversationOngoing()
boolean
isEnabled()
void
onEvent(Event event)
void
onStart(MessagingApi messagingApi, java.util.List<Configuration> configurations)
void
onStop()
-
-
-
Method Detail
-
engine
public static ChatEngine engine()
Returns the chat engine to be used in the Messaging SDK.Important: Make sure to call
Chat.init(Context, String)
first in order to initialize the Chat SDK.- Returns:
- An instance of
ChatEngine
ornull
if Chat SDK has not been initialized. - See Also:
Chat.init(Context, String)
-
onStart
public void onStart(MessagingApi messagingApi, java.util.List<Configuration> configurations)
-
onStop
public void onStop()
-
getId
public java.lang.String getId()
-
getDescription
public Description getDescription()
-
getType
public Type getType()
-
isEnabled
public boolean isEnabled()
-
isConversationOngoing
public boolean isConversationOngoing()
-
onEvent
public void onEvent(Event event)
-
-