Package com.zopim.android.sdk.prechat
Class ZopimChatActivity
- java.lang.Object
-
- AppCompatActivity
-
- com.zopim.android.sdk.prechat.ZopimChatActivity
-
- All Implemented Interfaces:
- ChatListener
public class ZopimChatActivity extends AppCompatActivity implements ChatListener
-
-
Constructor Summary
Constructors Constructor and Description ZopimChatActivity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
onChatEnded()
Callback that notifies that the chat has endedvoid
onChatInitialized()
Callback which notifies thatChatApi
chat is initialized and ready to be used.void
onChatLoaded(Chat chat)
Callback that is invoked whenZopimChatFragment
is finished loading theChat
.protected void
onCreate(Bundle savedInstanceState)
protected void
onDestroy()
boolean
onOptionsItemSelected(MenuItem item)
protected void
onSaveInstanceState(Bundle outState)
protected void
onStart()
static void
startActivity(Context context, ZopimChat.SessionConfig config)
Starts activity withZopimChatApi.SessionConfig
configuration
-
-
-
Method Detail
-
startActivity
public static void startActivity(Context context, ZopimChat.SessionConfig config)
Starts activity withZopimChatApi.SessionConfig
configuration- Parameters:
context
- to generate activity intentconfig
- for thisZopimChatActivity
-
onCreate
protected void onCreate(Bundle savedInstanceState)
-
onStart
protected void onStart()
-
onSaveInstanceState
protected void onSaveInstanceState(Bundle outState)
-
onDestroy
protected void onDestroy()
-
onOptionsItemSelected
public boolean onOptionsItemSelected(MenuItem item)
-
onChatLoaded
public void onChatLoaded(Chat chat)
Description copied from interface:ChatListener
Callback that is invoked whenZopimChatFragment
is finished loading theChat
.This will deliver the chat instance that was started by
ZopimChatFragment
- Specified by:
onChatLoaded
in interfaceChatListener
- Parameters:
chat
- instance that was started byZopimChatFragment
-
onChatInitialized
public void onChatInitialized()
Description copied from interface:ChatListener
Callback which notifies thatChatApi
chat is initialized and ready to be used.- Specified by:
onChatInitialized
in interfaceChatListener
-
onChatEnded
public void onChatEnded()
Description copied from interface:ChatListener
Callback that notifies that the chat has ended- Specified by:
onChatEnded
in interfaceChatListener
-
-