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 voidonChatEnded()Callback that notifies that the chat has endedvoidonChatInitialized()Callback which notifies thatChatApichat is initialized and ready to be used.voidonChatLoaded(Chat chat)Callback that is invoked whenZopimChatFragmentis finished loading theChat.protected voidonCreate(Bundle savedInstanceState)protected voidonDestroy()booleanonOptionsItemSelected(MenuItem item)protected voidonSaveInstanceState(Bundle outState)protected voidonStart()static voidstartActivity(Context context, ZopimChat.SessionConfig config)Starts activity withZopimChatApi.SessionConfigconfiguration
-
-
-
Method Detail
-
startActivity
public static void startActivity(Context context, ZopimChat.SessionConfig config)Starts activity withZopimChatApi.SessionConfigconfiguration- 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:ChatListenerCallback that is invoked whenZopimChatFragmentis finished loading theChat.This will deliver the chat instance that was started by
ZopimChatFragment- Specified by:
onChatLoadedin interfaceChatListener- Parameters:
chat- instance that was started byZopimChatFragment
-
onChatInitialized
public void onChatInitialized()
Description copied from interface:ChatListenerCallback which notifies thatChatApichat is initialized and ready to be used.- Specified by:
onChatInitializedin interfaceChatListener
-
onChatEnded
public void onChatEnded()
Description copied from interface:ChatListenerCallback that notifies that the chat has ended- Specified by:
onChatEndedin interfaceChatListener
-
-